Method: Webhookdb::Service::Collection#initialize
- Defined in:
- lib/webhookdb/service/collection.rb
#initialize(items, current_page:, page_count:, total_count:, last_page:) ⇒ Collection
Returns a new instance of Collection.
33 34 35 36 37 38 39 |
# File 'lib/webhookdb/service/collection.rb', line 33 def initialize(items, current_page:, page_count:, total_count:, last_page:) @items = items @current_page = current_page @page_count = page_count @last_page = last_page @total_count = total_count end |