rocketfuel_api 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2356648db6cb773e93d12bf0c4b0a576fc17d3da
4
- data.tar.gz: 8ea8ffd2797fd0ba516604eca4a9862288320b44
3
+ metadata.gz: 9256bb60b604f83d1c8b805d6a708498f6204410
4
+ data.tar.gz: 49f03be88bf6263a5c25fca1a563ea1dd6b21641
5
5
  SHA512:
6
- metadata.gz: 825a043e75a174a884e46d7098f4ff3a2e97edd6a511c41729a95b19e316ef84f3c2a1581a62c7495edd0b435244c1b72e4a8a26559aa5360e5d9af358e12f69
7
- data.tar.gz: 204a02272d3714d633a9174951fe28c771dc4b776eee5de321b827f094c64948f08d2e222f9c61f67be8172dd813b95f44d2fbe22988a31e5a756ec6cb4cf754
6
+ metadata.gz: baf90040ca8b6a8ed70259635a9dc25a7f685cbc71831fe69bf7b80808f37d49934e1f59bb0b8ee687906fa4208b1fffacc3cddb9cac2712c83ca1dec33a0640
7
+ data.tar.gz: 561d36eacdca2c975407b2935bd878928b16c3266b71d61b80ed8cd0039391e734e9517961ae859d2c895ef5fe6566f8c9560de5f9f623e13663e496cbf288bc
@@ -20,9 +20,11 @@ class RocketfuelApi::Service
20
20
  end
21
21
 
22
22
  def uri_suffix
23
- file_path = RocketfuelApi.root.join('lib', 'config', 'endpoints_for_services.yaml')
24
- endpoints = YAML.load_file(file_path)
25
- endpoint = endpoints['service'][name]
23
+ @endpoints ||= YAML.load_file(
24
+ RocketfuelApi.root.join('lib', 'config', 'endpoints_for_services.yaml')
25
+ )
26
+
27
+ endpoint = @endpoints['service'][name]
26
28
 
27
29
  endpoint || raise(RocketfuelApi::NotImplemented,
28
30
  format('No endpoint for service %s available.', name))
@@ -1,7 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RocketfuelApi::Service::AdvertisementAdAssignment < RocketfuelApi::Service
4
- def initialize(connection)
5
- super(connection)
6
- end
7
4
  end
@@ -1,7 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RocketfuelApi::Service::AdvertisementCard < RocketfuelApi::Service
4
- def initialize(connection)
5
- super(connection)
6
- end
7
4
  end
@@ -1,7 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RocketfuelApi::Service::AssignedFlight < RocketfuelApi::Service
4
- def initialize(connection)
5
- super(connection)
6
- end
7
4
  end
@@ -1,7 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RocketfuelApi::Service::Campaign < RocketfuelApi::Service
4
- def initialize(connection)
5
- super(connection)
6
- end
7
4
  end
@@ -1,7 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RocketfuelApi::Service::CampaignPixel < RocketfuelApi::Service
4
- def initialize(connection)
5
- super(connection)
6
- end
7
4
  end
@@ -1,7 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RocketfuelApi::Service::Company < RocketfuelApi::Service
4
- def initialize(connection)
5
- super(connection)
6
- end
7
4
  end
@@ -1,7 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RocketfuelApi::Service::Flight < RocketfuelApi::Service
4
- def initialize(connection)
5
- super(connection)
6
- end
7
4
  end
@@ -1,7 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RocketfuelApi::Service::LineItem < RocketfuelApi::Service
4
- def initialize(connection)
5
- super(connection)
6
- end
7
4
  end
@@ -1,7 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RocketfuelApi::Service::Pixel < RocketfuelApi::Service
4
- def initialize(connection)
5
- super(connection)
6
- end
7
4
  end
@@ -1,7 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RocketfuelApi::Service::PixelSearch < RocketfuelApi::Service
4
- def initialize(connection)
5
- super(connection)
6
- end
7
4
  end
@@ -1,7 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RocketfuelApi::Service::Reporting < RocketfuelApi::Service
4
- def initialize(connection)
5
- super(connection)
6
- end
7
4
  end
@@ -1,7 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RocketfuelApi::Service::ReportingDimension < RocketfuelApi::Service
4
- def initialize(connection)
5
- super(connection)
6
- end
7
4
  end
@@ -1,7 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RocketfuelApi::Service::ReportingMetric < RocketfuelApi::Service
4
- def initialize(connection)
5
- super(connection)
6
- end
7
4
  end
@@ -1,7 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RocketfuelApi::Service::SubNetwork < RocketfuelApi::Service
4
- def initialize(connection)
5
- super(connection)
6
- end
7
4
  end
@@ -1,7 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RocketfuelApi::Service::Tactic < RocketfuelApi::Service
4
- def initialize(connection)
5
- super(connection)
6
- end
7
4
  end
@@ -1,7 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RocketfuelApi::Service::ThridPartyPixelSearch < RocketfuelApi::Service
4
- def initialize(connection)
5
- super(connection)
6
- end
7
4
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RocketfuelApi
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocketfuel_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Greffenius