Closed rauhryan closed 12 years ago
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,
passing an options hash
gh.repos("rauhryan","ghee").issues :page => 2, :per_page => 100
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
Number 1 is what I had been toying with in my head. 2 may be more functional in the long run but just doesn't have the same beauty.
refer to issue #3
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,
passing an options hash
capture args in a block
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