Class: Decoder::State
- Inherits:
-
Object
- Object
- Decoder::State
- Includes:
- CommonMethods
- Defined in:
- lib/decoder/state.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(args) ⇒ State
constructor
A new instance of State.
Methods included from CommonMethods
Constructor Details
#initialize(args) ⇒ State
Returns a new instance of State.
6 7 8 9 |
# File 'lib/decoder/state.rb', line 6 def initialize(args) self.code = args[:code].to_s self.name = args[:name] end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
4 5 6 |
# File 'lib/decoder/state.rb', line 4 def code @code end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/decoder/state.rb', line 4 def name @name end |