Class: CloudParty::Responses::Node::Plan
- Inherits:
-
Object
- Object
- CloudParty::Responses::Node::Plan
- Defined in:
- lib/cloud_party/responses/nodes/zones/plan.rb
Instance Attribute Summary collapse
-
#list ⇒ Object
readonly
Returns the value of attribute list.
Instance Method Summary collapse
-
#initialize(hsh) ⇒ Plan
constructor
A new instance of Plan.
- #inspect ⇒ Object
- #to_s ⇒ Object
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
#list ⇒ Object (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
#inspect ⇒ Object
19 20 21 |
# File 'lib/cloud_party/responses/nodes/zones/plan.rb', line 19 def inspect to_s end |
#to_s ⇒ Object
15 16 17 |
# File 'lib/cloud_party/responses/nodes/zones/plan.rb', line 15 def to_s "#<Plan: #{list}>" end |