Module: UffizziCore::ResponseService
- Included in:
- ApplicationController
- Defined in:
- app/services/uffizzi_core/response_service.rb
Instance Method Summary collapse
Instance Method Details
#meta(collection) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'app/services/uffizzi_core/response_service.rb', line 4 def (collection) { total_count: collection.total_count, current_page: collection.current_page, per_page: collection.limit_value, count: collection.to_a.count, total_pages: collection.total_pages, } end |