Class: ThreeScale::Core::APIClient::Collection

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Enumerable
Defined in:
lib/3scale/core/api_client/collection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#totalObject (readonly)

Returns the value of attribute total.



8
9
10
# File 'lib/3scale/core/api_client/collection.rb', line 8

def total
  @total
end