outbrain-api 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 465a0b775ad95f673697c11a492359a806c5e1b4
4
- data.tar.gz: 792ace61965627c5fff1a457f5ae1b0edc2bdf5a
3
+ metadata.gz: d359aa56dc939863555dc182675bb07c00630967
4
+ data.tar.gz: d577af96b6726d80bb1aec5ad8141b7f27275d11
5
5
  SHA512:
6
- metadata.gz: e0777b69c5de8b1f569e9949ec50ee4639b49db742a020ad042129975a3ea40787769890854cbc1ef6b99971000548d7a495e7a3752a3b1fadb6518bdbcf6df0
7
- data.tar.gz: 4411d3fb1cf1fa4f0315d89441e57dbe40b4ecae522791aa11bafc6486073211ceb9cedd7f7801a6c1c603bcf6bcfc44a2b9a1748e48960d51ee7d265849e235
6
+ metadata.gz: d33f0b709c865be6e03544b082212321fba4f364554b1bea7c8d81c581cc4459efb65d8b90d4b64b9460270170f1c0774d941b7b9e20f4c7545db79ded43fae9
7
+ data.tar.gz: 1540a237b5e5206a002a5d79243ba9892a048546cbf53af93e29e9d1b99c8473b2db58b0eea9a74b5d7aa967a0c733806a75dfcef0018bfa0a4a068d7430c4cf
@@ -1,6 +1,7 @@
1
1
  module Outbrain
2
2
  module Api
3
3
  class Budget < Base
4
+ PATH='budgets'
4
5
 
5
6
  def self.path(id)
6
7
  "marketers/#{id}/budgets"
@@ -10,6 +11,10 @@ module Outbrain
10
11
  Request.create(path(attributes.delete(:marketer_id)), {as: self, attributes: attributes})
11
12
  end
12
13
 
14
+ def self.find(budget_id)
15
+ Request.find(PATH, budget_id, { as: self })
16
+ end
17
+
13
18
  def self.find_by(attributes={})
14
19
  marketer_id = attributes[:marketer_id]
15
20
  fail InvalidOption 'find_by requires marketer-id' unless marketer_id
@@ -1,5 +1,5 @@
1
1
  module Outbrain
2
2
  module Api
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: outbrain-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Blanchet
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-06 00:00:00.000000000 Z
11
+ date: 2016-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday