Class: Bitreserve::Entities::BaseEntity::PaginatedCollection
- Inherits:
-
Array
- Object
- Array
- Bitreserve::Entities::BaseEntity::PaginatedCollection
- Defined in:
- lib/bitreserve/entities/base_entity.rb
Instance Attribute Summary collapse
-
#total_size ⇒ Object
readonly
Returns the value of attribute total_size.
Instance Method Summary collapse
-
#initialize(items, total_size) ⇒ PaginatedCollection
constructor
A new instance of PaginatedCollection.
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_size ⇒ Object (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 |