Class: ThreeScale::Core::APIClient::Collection
- Inherits:
-
Object
- Object
- ThreeScale::Core::APIClient::Collection
- Extended by:
- Forwardable
- Includes:
- Enumerable
- Defined in:
- lib/3scale/core/api_client/collection.rb
Instance Attribute Summary collapse
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(resources = [], total = resources.size) ⇒ Collection
constructor
A new instance of Collection.
Constructor Details
#initialize(resources = [], total = resources.size) ⇒ Collection
Returns a new instance of Collection.
10 11 12 13 |
# File 'lib/3scale/core/api_client/collection.rb', line 10 def initialize(resources=[], total=resources.size) @resources = resources @total = total end |
Instance Attribute Details
#total ⇒ Object (readonly)
Returns the value of attribute total.
8 9 10 |
# File 'lib/3scale/core/api_client/collection.rb', line 8 def total @total end |