Class: Pastvu::ClusterCollection

Inherits:
Collection show all
Defined in:
lib/pastvu/cluster/cluster_collection.rb

Instance Attribute Summary

Attributes inherited from BasicResponse

#hash, #json

Instance Method Summary collapse

Methods inherited from Collection

#each

Methods inherited from BasicResponse

#to_hash, #to_json

Constructor Details

#initialize(attributes) ⇒ ClusterCollection

Returns a new instance of ClusterCollection.



3
4
5
6
7
# File 'lib/pastvu/cluster/cluster_collection.rb', line 3

def initialize(attributes)
  super attributes
  @path = %w[result clusters]
  @model = Cluster
end