qbwc_requests 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4ec6cf081cfe28cd4fe806eba4f2198960d5466
4
- data.tar.gz: 73baa268fc4f48b64e4cab07124869286c5d568f
3
+ metadata.gz: 5d6594578c5d8563d509fd1181cbe303c752632c
4
+ data.tar.gz: 4e2d5b8f6394d3d876a5ad125d661a7035d82f34
5
5
  SHA512:
6
- metadata.gz: add6899879acaf76c75f3675e784b217e1a7fab85bff40b5b85328afa8f952dc1bab8445635f18c0258860168ee310dca4385ca289cdceb8d744ce3b86ea1d6b
7
- data.tar.gz: cca63d4e63950935793b41e6ad25b68256c384a181a4e3e7553ed9e2abb52c99c08331fd488ed29db14d43419ea0f19f4779e949dd1b3074c354e7eb28567f1e
6
+ metadata.gz: 810a75787b7b703fa49333162b7c155524a8d2a0af81e4a5dc0c04449ba2159b4125544c8ba8605b811bac47db7758a0d1c73c2909c8349aa0004b396efbf9ce
7
+ data.tar.gz: 7e50c0abed86edcce9bc2694bf8e472a6f5f47200cf3947225aafb91a6cf33773463ee8d1fb412816717f2508a8467b1966be7451a9d786b7220a8da8c64acf0
@@ -7,8 +7,9 @@ module Qbwc
7
7
  include ActiveModel::Validations
8
8
  include ActiveModel::Conversion
9
9
 
10
- def self.query amount = 2000
11
- XmlActions.query("#{underscore self.name.demodulize}_query_rq", amount)
10
+ def self.query options = nil
11
+ options = { max_returned: 2000 } if options == nil or options.empty?
12
+ XmlActions.query "#{underscore self.name.demodulize}_query_rq", options
12
13
  end
13
14
 
14
15
  def add
@@ -58,4 +59,4 @@ module Qbwc
58
59
 
59
60
  end
60
61
  end
61
- end
62
+ end
@@ -3,9 +3,9 @@ module Qbwc
3
3
  module V07
4
4
  class Item
5
5
  def self.query
6
- XmlActions.query "item_query_rq", 2000
6
+ XmlActions.query "item_query_rq", max_returned: 2000
7
7
  end
8
8
  end
9
9
  end
10
10
  end
11
- end
11
+ end
@@ -1,14 +1,13 @@
1
1
  module Qbwc
2
2
  module XmlActions
3
3
 
4
- def self.query req, max_returned
4
+ def self.query req, options
5
5
  hash = {"qbxml"=>
6
6
  {"xml_attributes"=>{},
7
7
  "qbxml_msgs_rq"=>
8
8
  {"xml_attributes"=>{"onError"=>"stopOnError"},
9
9
  "#{req}"=>
10
- {"xml_attributes"=>{},
11
- "max_returned"=> max_returned}
10
+ {"xml_attributes"=>{}}.merge(options)
12
11
  }
13
12
  }
14
13
  }
@@ -1,3 +1,3 @@
1
1
  module QbwcRequests
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qbwc_requests
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre Mondaini Calvão
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-29 00:00:00.000000000 Z
11
+ date: 2015-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: qbxml