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 +4 -4
- data/lib/outbrain/api/budget.rb +5 -0
- data/lib/outbrain/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d359aa56dc939863555dc182675bb07c00630967
|
4
|
+
data.tar.gz: d577af96b6726d80bb1aec5ad8141b7f27275d11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d33f0b709c865be6e03544b082212321fba4f364554b1bea7c8d81c581cc4459efb65d8b90d4b64b9460270170f1c0774d941b7b9e20f4c7545db79ded43fae9
|
7
|
+
data.tar.gz: 1540a237b5e5206a002a5d79243ba9892a048546cbf53af93e29e9d1b99c8473b2db58b0eea9a74b5d7aa967a0c733806a75dfcef0018bfa0a4a068d7430c4cf
|
data/lib/outbrain/api/budget.rb
CHANGED
@@ -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
|
data/lib/outbrain/api/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2016-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|