mixmax 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mixmax.rb +11 -3
- data/lib/mixmax/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56b0b308f332943af3a716248ea8ac14e8fb0314a49dee92a1eed3fc73dbcfa7
|
4
|
+
data.tar.gz: c458856c777bb924888394a3f3fbe8dc7910e4103fd18172d1b27f6c94ca7064
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bab4d137879643718a4d65d1a587ccd2580d80953e5af82dd042cb745ed9c56eb6671360dc4c16fd9ecbc29a917f0849c84d795a65d988dd2052ef3317b4191
|
7
|
+
data.tar.gz: d74d27be12f3e371d1e370c6e2603467099592e66ce86ca5c991142f57c0296914627fb25b4fbd76925896bc1c3b0b9326189efc20a3200b9ff5c71fd1979f3c
|
data/lib/mixmax.rb
CHANGED
@@ -14,11 +14,19 @@ class Mixmax
|
|
14
14
|
|
15
15
|
base_uri 'https://api.mixmax.com'
|
16
16
|
|
17
|
-
def sequences(query: {})
|
18
|
-
|
17
|
+
def sequences(query: {}, all: false)
|
18
|
+
sequences = []
|
19
|
+
next_param = ''
|
20
|
+
|
21
|
+
loop do
|
22
|
+
response = get "/v1/sequences/#{next_param}"
|
23
|
+
sequences += response['results']
|
24
|
+
return sequences unless response['hasNext'] && all
|
25
|
+
next_param = "?next=#{response['next']}"
|
26
|
+
end
|
19
27
|
end
|
20
28
|
|
21
|
-
def sequence(sequence_id)
|
29
|
+
def sequence(sequence_id, bring_all: false)
|
22
30
|
get "/v1/sequences/#{sequence_id}"
|
23
31
|
end
|
24
32
|
|
data/lib/mixmax/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mixmax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Torres
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|