constructorio 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/constructorio/client.rb +5 -1
- data/lib/constructorio/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f892a807c2f4bfae0d0bfaf8f46036aedf2cb80d
|
4
|
+
data.tar.gz: ceba0bafea8234cad7fc5819cb55774040df27a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff79dd32d5a3ea0b6a4a99ccf52fe9ec6b94f7c75fafabfdeeffe396f09ca2ee5db8936460f6956ced415475e160f8e92247bdc447ec3d0cb3c60cecc323e1d8
|
7
|
+
data.tar.gz: 1e07887af2e0a65457e15444793d66bda79f8186483556045907072bd2508aabdddc7f2e718753e485acc91661581f2e7a6f50d4a0a38052864be4c3ab7075a3
|
data/lib/constructorio/client.rb
CHANGED
@@ -8,7 +8,7 @@ module ConstructorIO
|
|
8
8
|
def initialize(config = nil)
|
9
9
|
@local_configuration = config || ConstructorIO::Configuration.new(
|
10
10
|
api_token: ConstructorIO.configuration.api_token,
|
11
|
-
api_url: ConstructorIO.configuration.api_url
|
11
|
+
api_url: ConstructorIO.configuration.api_url,
|
12
12
|
autocomplete_key: ConstructorIO.configuration.autocomplete_key
|
13
13
|
)
|
14
14
|
end
|
@@ -41,6 +41,10 @@ module ConstructorIO
|
|
41
41
|
call_api("verify", "get")
|
42
42
|
end
|
43
43
|
|
44
|
+
def batch_items(params)
|
45
|
+
call_api("batch_items", "post", params)
|
46
|
+
end
|
47
|
+
|
44
48
|
private
|
45
49
|
|
46
50
|
def call_api(path, method, params = {})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: constructorio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan McCormick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|