Class: Bitreserve::Entities::BaseEntity::PaginatedCollection

Inherits:
Array
  • Object
show all
Defined in:
lib/bitreserve/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.



20
21
22
23
# File 'lib/bitreserve/entities/base_entity.rb', line 20

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.



18
19
20
# File 'lib/bitreserve/entities/base_entity.rb', line 18

def total_size
  @total_size
end