Class: Uphold::Entities::BaseEntity::PaginatedCollection
- Inherits:
-
Array
- Object
- Array
- Uphold::Entities::BaseEntity::PaginatedCollection
- Defined in:
- lib/uphold/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.
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_size ⇒ Object (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 |