Class: CloudParty::Responses::Node::Plan

Inherits:
Object
  • Object
show all
Defined in:
lib/cloud_party/responses/nodes/zones/plan.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hsh) ⇒ Plan

Returns a new instance of Plan.



7
8
9
10
11
# File 'lib/cloud_party/responses/nodes/zones/plan.rb', line 7

def initialize(hsh)
  hsh.each do |name, value|
    instance_variable_set(:"@#{name}", value)
  end
end

Instance Attribute Details

#listObject (readonly)

Returns the value of attribute list.



13
14
15
# File 'lib/cloud_party/responses/nodes/zones/plan.rb', line 13

def list
  @list
end

Instance Method Details

#inspectObject



19
20
21
# File 'lib/cloud_party/responses/nodes/zones/plan.rb', line 19

def inspect
  to_s
end

#to_sObject



15
16
17
# File 'lib/cloud_party/responses/nodes/zones/plan.rb', line 15

def to_s
  "#<Plan: #{list}>"
end