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.



173
174
175
176
# File 'lib/ruote/reader/radial.rb', line 173

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

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



172
173
174
# File 'lib/ruote/reader/radial.rb', line 172

def key
  @key
end

#valObject (readonly)

Returns the value of attribute val.



172
173
174
# File 'lib/ruote/reader/radial.rb', line 172

def val
  @val
end