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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1753fb1b4a42d33db4e811d339fa12a22c718bca2e594b3c66cac115ba5622f
4
- data.tar.gz: 757a0842074ae620943ab3c54d043b2d283979cbd20c21cc14a851702114a4b8
3
+ metadata.gz: 72c7ea15acaf58e80c0e95ec23a83b6c79a379a909acd2685a04cad3aa4745d5
4
+ data.tar.gz: 06fbc38d78cb6f8af4dfea3c95dca449b4260eb3f59be9df5c4571cc2dae6c23
5
5
  SHA512:
6
- metadata.gz: 6ed6b315b7c4944d9fcde7ba435a262647d44f8e5dcbdcbd1757a964e9bbd144e76e395e7b1b2696dcce242cac754b389df4fb9f1f3b96be0a826baee74cc137
7
- data.tar.gz: 3ea22e57195ecd045fb89250064e6433cbee20ebee130c36252e801e687e56d114ce4f0716607440a0ac6750f4cf349156cd7c4de84174c8dba35ceec83b10c9
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
 
@@ -1,5 +1,5 @@
1
1
  module Nimbu
2
2
  module API
3
- VERSION = "0.4.1"
3
+ VERSION = "0.4.2"
4
4
  end
5
5
  end
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.1
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-09-09 00:00:00.000000000 Z
11
+ date: 2018-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie