Class: Rubyvis::Property
Instance Attribute Summary collapse
-
#_type ⇒ Object
Returns the value of attribute _type.
-
#fixed ⇒ Object
Returns the value of attribute fixed.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(opts = Hash.new) ⇒ Property
constructor
A new instance of Property.
Constructor Details
#initialize(opts = Hash.new) ⇒ Property
Returns a new instance of Property.
4 5 6 7 8 9 10 |
# File 'lib/rubyvis/property.rb', line 4 def initialize(opts=Hash.new) @id=opts[:id] @name=opts[:name] @value=opts[:value] @_type=opts[:_type] @fixed=opts[:fixed] end |
Instance Attribute Details
#_type ⇒ Object
Returns the value of attribute _type.
3 4 5 |
# File 'lib/rubyvis/property.rb', line 3 def _type @_type end |
#fixed ⇒ Object
Returns the value of attribute fixed.
3 4 5 |
# File 'lib/rubyvis/property.rb', line 3 def fixed @fixed end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/rubyvis/property.rb', line 3 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/rubyvis/property.rb', line 3 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
3 4 5 |
# File 'lib/rubyvis/property.rb', line 3 def value @value end |