Class: CloudParty::Responses::Node::PlanPending

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

Instance Method Summary collapse

Constructor Details

#initialize(hsh) ⇒ PlanPending

Returns a new instance of PlanPending.



7
8
9
10
11
12
13
14
15
# File 'lib/cloud_party/responses/nodes/zones/plan_pending.rb', line 7

def initialize(hsh)
  if hsh.nil?
    @list = nil
  else
    hsh.each do |name, value|
      instance_variable_set(:"@#{name}", value)
    end
  end
end

Instance Method Details

#inspectObject



21
22
23
# File 'lib/cloud_party/responses/nodes/zones/plan_pending.rb', line 21

def inspect
  to_s
end

#to_sObject



17
18
19
# File 'lib/cloud_party/responses/nodes/zones/plan_pending.rb', line 17

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