Class: Decoder::State

Inherits:
Object
  • Object
show all
Includes:
CommonMethods
Defined in:
lib/decoder/state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from CommonMethods

#inspect, #to_s

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

#codeObject

Returns the value of attribute code.



4
5
6
# File 'lib/decoder/state.rb', line 4

def code
  @code
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/decoder/state.rb', line 4

def name
  @name
end