Class: Awsum::Ec2::State
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(code, name) ⇒ State
constructor
A new instance of State.
Constructor Details
#initialize(code, name) ⇒ State
Returns a new instance of State.
6 7 8 9 |
# File 'lib/awsum/ec2/state.rb', line 6 def initialize(code, name) @code = code.to_i @name = name end |