lib/prontoforms/client.rb in prontoforms-0.1.0 vs lib/prontoforms/client.rb in prontoforms-0.2.0
- old
+ new
@@ -20,10 +20,13 @@
res = connection.send(verb) do |req|
req.url url
query.each { |k, v| req.params[k] = v }
end
if res.success?
- ResourceList.new(JSON.parse(res.body), 0, 20, method, resource, self)
+ ResourceList.new(JSON.parse(res.body), {
+ 'p' => 0,
+ 's' => 100
+ }.merge(query), method, resource, self)
else
nil
end
end
end