jonmagic/ghee — Issue #2: Paging support
Author: rauhryan
Created: 2011-12-28 17:07:05+00:00
State: open

I've started thinking about paging support, particularly with issues

I'd like to open some discussion on how this might be implemented.

i've got a few options in mind,

1. passing an options hash

gh.repos("rauhryan","ghee").issues :page => 2, :per_page => 100

2. capture args in a block

gh.repos("rauhryan", "ghee").issues do |opt|
opt[:page] = 2
opt[:per_page] = 100
end

i feel like option two is more flexible. Maybe theres a way to expose the faraday connection to the block
then you would be free to change headers, params, whatever