Class: Ruote::RadialReader::Transformer::Attribute

Inherits:
Object
  • Object
show all
Defined in:
lib/ruote/reader/radial.rb

Direct Known Subclasses

Value

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, val) ⇒ Attribute

Returns a new instance of Attribute


179
180
181
182
# File 'lib/ruote/reader/radial.rb', line 179

def initialize(key, val)
  @key = key.to_s.gsub(/-/, '_')
  @val = val
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key


178
179
180
# File 'lib/ruote/reader/radial.rb', line 178

def key
  @key
end

#valObject (readonly)

Returns the value of attribute val


178
179
180
# File 'lib/ruote/reader/radial.rb', line 178

def val
  @val
end