Module: SimplyCouch::Model::Pagination
- Included in:
- ClassMethods
- Defined in:
- lib/simply_couch/model/pagination.rb
Instance Method Summary collapse
- #current_page_method(setter = nil) ⇒ Object
- #num_pages_method(setter = nil) ⇒ Object
- #per_page_method(setter = nil) ⇒ Object
- #total_pages_method(setter = nil) ⇒ Object
Instance Method Details
#current_page_method(setter = nil) ⇒ Object
9 10 11 12 |
# File 'lib/simply_couch/model/pagination.rb', line 9 def current_page_method(setter = nil) @_current_page_method = setter if setter @_current_page_method || 'current_page' end |
#num_pages_method(setter = nil) ⇒ Object
14 15 16 17 |
# File 'lib/simply_couch/model/pagination.rb', line 14 def num_pages_method(setter = nil) @_num_pages_method = setter if setter @_num_pages_method || 'num_pages' end |
#per_page_method(setter = nil) ⇒ Object
19 20 21 22 |
# File 'lib/simply_couch/model/pagination.rb', line 19 def per_page_method(setter = nil) @_per_page_method = setter if setter @_per_page_method || 'per_page' end |
#total_pages_method(setter = nil) ⇒ Object
4 5 6 7 |
# File 'lib/simply_couch/model/pagination.rb', line 4 def total_pages_method(setter = nil) @_total_pages_method = setter if setter @_total_pages_method || 'total_pages' end |