flowcommerce 0.0.31 → 0.0.32
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/flow_commerce/flow_api_v0_client.rb +7 -7
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e143e50de618a47c9112e3b4453552b936f4a173
|
|
4
|
+
data.tar.gz: f348929eaa21ef966c182989d8f7f921ec89c404
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a5d4cabe6e9f3788a4d069b5602f10fe5b69775150bd6254a4936271a625270a6a8bbf517769c248efe4d19e7a98d82359096b21286a41c4bf70c5bcc341bc8b
|
|
7
|
+
data.tar.gz: 2987eb586508f5822aa5bbe8649a29ae5c1afbae20f788a65f38832a5e97d8bc00682eaa4b5bf1f9656c14de9314e9d138d869f4cd7429f6d01dc90bb1bb827d
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Generated by apidoc - http://www.apidoc.me
|
|
2
|
-
# Service version: 0.0.
|
|
3
|
-
# apidoc:0.11.33 http://www.apidoc.me/flow/api/0.0.
|
|
2
|
+
# Service version: 0.0.95
|
|
3
|
+
# apidoc:0.11.33 http://www.apidoc.me/flow/api/0.0.95/ruby_client
|
|
4
4
|
|
|
5
5
|
require 'cgi'
|
|
6
6
|
require 'net/http'
|
|
@@ -25,8 +25,8 @@ module Io
|
|
|
25
25
|
|
|
26
26
|
BASE_URL = 'https://api.flow.io' unless defined?(Constants::BASE_URL)
|
|
27
27
|
NAMESPACE = 'io.flow.v0' unless defined?(Constants::NAMESPACE)
|
|
28
|
-
USER_AGENT = 'apidoc:0.11.33 http://www.apidoc.me/flow/api/0.0.
|
|
29
|
-
VERSION = '0.0.
|
|
28
|
+
USER_AGENT = 'apidoc:0.11.33 http://www.apidoc.me/flow/api/0.0.95/ruby_client' unless defined?(Constants::USER_AGENT)
|
|
29
|
+
VERSION = '0.0.95' unless defined?(Constants::VERSION)
|
|
30
30
|
VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
|
|
31
31
|
|
|
32
32
|
end
|
|
@@ -1323,7 +1323,7 @@ module Io
|
|
|
1323
1323
|
:offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer),
|
|
1324
1324
|
:sort => HttpClient::Preconditions.assert_class('sort', (x = opts.delete(:sort); x.nil? ? "-created_at" : x), String)
|
|
1325
1325
|
}.delete_if { |k, v| v.nil? }
|
|
1326
|
-
r = @client.request("/
|
|
1326
|
+
r = @client.request("/currency/spot-rates").with_query(query).get
|
|
1327
1327
|
r.map { |x| ::Io::Flow::V0::Models::SpotRate.new(x) }
|
|
1328
1328
|
end
|
|
1329
1329
|
|
|
@@ -1336,7 +1336,7 @@ module Io
|
|
|
1336
1336
|
:offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer),
|
|
1337
1337
|
:sort => HttpClient::Preconditions.assert_class('sort', (x = opts.delete(:sort); x.nil? ? "journal_timestamp" : x), String)
|
|
1338
1338
|
}.delete_if { |k, v| v.nil? }
|
|
1339
|
-
r = @client.request("/
|
|
1339
|
+
r = @client.request("/currency/spot-rates/versions").with_query(query).get
|
|
1340
1340
|
r.map { |x| ::Io::Flow::V0::Models::SpotRateVersion.new(x) }
|
|
1341
1341
|
end
|
|
1342
1342
|
|
|
@@ -7200,7 +7200,7 @@ module Io
|
|
|
7200
7200
|
@description = (x = opts.delete(:description); x.nil? ? nil : HttpClient::Preconditions.assert_class('description', x, String))
|
|
7201
7201
|
@attributes = HttpClient::Preconditions.assert_class('attributes', opts.delete(:attributes), Hash).inject({}) { |h, d| h[d[0]] = HttpClient::Preconditions.assert_class('attributes', d[1], String); h }
|
|
7202
7202
|
@dimensions = HttpClient::Preconditions.assert_class('dimensions', HttpClient::Helper.to_object(opts.delete(:dimensions)), Hash)
|
|
7203
|
-
@images = HttpClient::Preconditions.assert_class('images',
|
|
7203
|
+
@images = HttpClient::Preconditions.assert_class('images', opts.delete(:images), Array).map { |v| HttpClient::Preconditions.assert_class('images', HttpClient::Helper.to_object(v), Hash) }
|
|
7204
7204
|
end
|
|
7205
7205
|
|
|
7206
7206
|
def to_json
|