Module: HaveAPI::Actions::Paginable
- Included in:
- Default::Index
- Defined in:
- lib/haveapi/actions/paginable.rb
Class Method Summary collapse
Class Method Details
.included(action) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/haveapi/actions/paginable.rb', line 3 def self.included(action) action.input do integer :from_id, label: 'From ID', desc: 'List objects with greater/lesser ID', number: { min: 0 } integer :limit, label: 'Limit', desc: 'Number of objects to retrieve', number: { min: 0 } end end |