iron_bank 3.2.0 → 3.3.0

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: 266748613add787ae3703d59fc767ff26b1ac81b
4
- data.tar.gz: eb774563fa89f0bec3af6a37ddb01c99f36525c6
3
+ metadata.gz: d983ad6ae1f11b84ea83cfa0bcc28593d4dfd7b8
4
+ data.tar.gz: 3b1d94f5dbc8b95ba878905cd93d5c13d5988bf7
5
5
  SHA512:
6
- metadata.gz: 437627e86a74fed69bd4325e8634dac5f6664ac4d4194412b08f085422584c636de2213d411ea87704cd2a442577c7bca96a190422055fc65d5bac7c8edd6388
7
- data.tar.gz: e2c762dd3c94c770ab956c00256e1d4f1c3eb90868cf20839b2bc494af53ef8718b70b5428d76790f3c5a9e46ff6ae91d6dd1fb299c7d2054cd6a5fd7a5a5cfe
6
+ metadata.gz: ef0840337aa6a1430ab81f9ab85f287dc034091b09bfb192ae2320b30dcbaeb6cca9dc06b125051ae348a2fa2ef0e033bd0540f2dceddbe1d9a7fc1253ae47d8
7
+ data.tar.gz: 2b68c9588d78bde9c27f6d0a81948539acdf27607329f7670c47677ea46deb1c96bc92e55139a0d2dc2593560c97f426d532e2ac0c637ea60a52b47cc7ef41c8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- iron_bank (3.2.0)
4
+ iron_bank (3.3.0)
5
5
  faraday (~> 0)
6
6
  faraday_middleware (~> 0)
7
7
  nokogiri (~> 1)
@@ -48,7 +48,7 @@ GEM
48
48
  method_source (0.9.2)
49
49
  mini_portile2 (2.4.0)
50
50
  minitest (5.11.3)
51
- multipart-post (2.0.0)
51
+ multipart-post (2.1.1)
52
52
  nokogiri (1.10.3)
53
53
  mini_portile2 (~> 2.4.0)
54
54
  parallel (1.17.0)
@@ -6,10 +6,27 @@ module IronBank
6
6
  # https://knowledgecenter.zuora.com/DC_Developers/K_Zuora_Object_Query_Language
7
7
  #
8
8
  class Query < Action
9
+ def self.call(zoql, limit: 0)
10
+ new(zoql, limit).call
11
+ end
12
+
9
13
  private
10
14
 
15
+ attr_reader :zoql, :limit
16
+
17
+ def initialize(zoql, limit)
18
+ @zoql = zoql
19
+ @limit = limit
20
+ end
21
+
11
22
  def params
12
- { 'queryString': args }
23
+ return required_params if limit.zero?
24
+
25
+ required_params.merge(conf: { batchSize: limit })
26
+ end
27
+
28
+ def required_params
29
+ { queryString: zoql }
13
30
  end
14
31
  end
15
32
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IronBank
4
- VERSION = "3.2.0"
4
+ VERSION = "3.3.0"
5
5
  API_VERSION = "v1"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_bank
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mickael Pham
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2019-05-07 00:00:00.000000000 Z
14
+ date: 2019-05-20 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bump