Class: DashOverlord::UseCases::V1::Repositories::DynamoDb::SearchAndPaginate::ApplyPagination
- Inherits:
-
Base
- Object
- Base
- Base
- DashOverlord::UseCases::V1::Repositories::DynamoDb::SearchAndPaginate::ApplyPagination
- Defined in:
- lib/dash_overlord/use_cases/v1/repositories/dynamo_db/search_and_paginate/apply_pagination.rb
Constant Summary collapse
- PAGE_DEFAULT =
1
- PER_PAGE_DEFAULT =
10
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
context_reader, #final, #initialize, perform, target, #target_valid?
Constructor Details
This class inherits a constructor from DashOverlord::UseCases::Base
Instance Method Details
#perform ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/dash_overlord/use_cases/v1/repositories/dynamo_db/search_and_paginate/apply_pagination.rb', line 18 def perform context.page = fix_page(page) if page == 0 no_pagination else apply_pagination end end |