nimbu-api 0.4.1 → 0.4.2
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/nimbu-api/endpoints/customers.rb +10 -0
- data/lib/nimbu-api/endpoints/products.rb +10 -0
- data/lib/nimbu-api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 72c7ea15acaf58e80c0e95ec23a83b6c79a379a909acd2685a04cad3aa4745d5
|
|
4
|
+
data.tar.gz: 06fbc38d78cb6f8af4dfea3c95dca449b4260eb3f59be9df5c4571cc2dae6c23
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9ceba89fd1f407ad764d61449cfdf17e4909578ecb444889065316236f7f1e7b269dc1333cf8ce49379c951d5dc7e4308614b47ff083c8c3275fe34760e330fa
|
|
7
|
+
data.tar.gz: 8ccb95a44f6e651dcaf4505dba3e45f280df7bcce356b64a9f3916af00a9a56bffdaf48d4947720957a40eb1ba9d3495d8afaad611452126826327b42a637284
|
|
@@ -12,6 +12,16 @@ module Nimbu
|
|
|
12
12
|
end
|
|
13
13
|
alias :all :list
|
|
14
14
|
|
|
15
|
+
def customizations(*args)
|
|
16
|
+
arguments(args)
|
|
17
|
+
|
|
18
|
+
response = get_request("/products/customizations", arguments.params)
|
|
19
|
+
return response unless block_given?
|
|
20
|
+
response.each { |el| yield el }
|
|
21
|
+
end
|
|
22
|
+
alias :fields :customizations
|
|
23
|
+
alias :custom_fields :customizations
|
|
24
|
+
|
|
15
25
|
def count(*args)
|
|
16
26
|
arguments(args)
|
|
17
27
|
|
|
@@ -12,6 +12,16 @@ module Nimbu
|
|
|
12
12
|
end
|
|
13
13
|
alias :all :list
|
|
14
14
|
|
|
15
|
+
def customizations(*args)
|
|
16
|
+
arguments(args)
|
|
17
|
+
|
|
18
|
+
response = get_request("/products/customizations", arguments.params)
|
|
19
|
+
return response unless block_given?
|
|
20
|
+
response.each { |el| yield el }
|
|
21
|
+
end
|
|
22
|
+
alias :fields :customizations
|
|
23
|
+
alias :custom_fields :customizations
|
|
24
|
+
|
|
15
25
|
def get(*args)
|
|
16
26
|
arguments(args, :required => [:product_id])
|
|
17
27
|
|
data/lib/nimbu-api/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nimbu-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter Dedene
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-11-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: hashie
|