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.



161
162
163
164
# File 'lib/ruote/reader/radial.rb', line 161

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

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



160
161
162
# File 'lib/ruote/reader/radial.rb', line 160

def key
  @key
end

#valObject (readonly)

Returns the value of attribute val.



160
161
162
# File 'lib/ruote/reader/radial.rb', line 160

def val
  @val
end