tagalys 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tagalys.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d43b3139366fad6c431d5e4770d0cb86e115557bc6a8e89c8c0b5911c635b77
|
4
|
+
data.tar.gz: 54031a88a5acca3a38a54099990e29da45aeaba3ebcc221b0f84c6a0df25cc1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddb4af04d4c26776f20427162142421c374056e059911658231ec48ac98705c15c1fff30f0268b30376534523cb8fdb2cce7f8d2cc73865ea481790069252c70
|
7
|
+
data.tar.gz: '078c644c706de608bdde398cf1cb8b42c2a4524121766219a8eb235b065cec6514dcc6d88f7d157ffc303b77344d385dbd0fdd8091e9e6049f016b6f90506a28'
|
data/lib/tagalys.rb
CHANGED
@@ -39,7 +39,7 @@ module Tagalys
|
|
39
39
|
search_response = request_tagalys('/search', request_body)
|
40
40
|
end
|
41
41
|
|
42
|
-
def get_page_details(page_name)
|
42
|
+
def get_page_details(page_name, page=1, per_page=30)
|
43
43
|
request_body = {
|
44
44
|
identification: identification,
|
45
45
|
request: [
|
@@ -48,7 +48,9 @@ module Tagalys
|
|
48
48
|
"details",
|
49
49
|
"sort_options",
|
50
50
|
"filters"
|
51
|
-
]
|
51
|
+
],
|
52
|
+
page: page,
|
53
|
+
per_page: per_page
|
52
54
|
}.compact
|
53
55
|
search_response = request_tagalys('/mpages/' + page_name, request_body)
|
54
56
|
end
|