lib/sinatra_client.rb in sinatra_client-0.0.4 vs lib/sinatra_client.rb in sinatra_client-0.0.5

- old
+ new

@@ -32,11 +32,12 @@ url.path << "/postable/#{postable_id}/posts" url.query = URI.encode_www_form({ postable_type: postable_type }) parse RestClient.delete(url.to_s) end - def get_group_posts(group_id) + def get_group_posts(group_id, page) url.path << "/groups/#{group_id}/posts" + url.query = URI.encode_www_form({ page: page }) parse RestClient.get(url.to_s) end def get_user_posts_comment(post_id) url.path << "/posts/#{post_id}/comments"