Class: Uphold::Entities::BaseEntity::PaginatedCollection

Inherits:
Array
  • Object
show all
Defined in:
lib/uphold/entities/base_entity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(items, total_size) ⇒ PaginatedCollection

Returns a new instance of PaginatedCollection.



24
25
26
27
# File 'lib/uphold/entities/base_entity.rb', line 24

def initialize(items, total_size)
  super(items)
  @total_size = total_size.to_i
end

Instance Attribute Details

#total_sizeObject (readonly)

Returns the value of attribute total_size.



22
23
24
# File 'lib/uphold/entities/base_entity.rb', line 22

def total_size
  @total_size
end