Class: Rubyvis::Property

Inherits:
Object show all
Defined in:
lib/rubyvis/property.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#_typeObject

Returns the value of attribute _type.



3
4
5
# File 'lib/rubyvis/property.rb', line 3

def _type
  @_type
end

#fixedObject

Returns the value of attribute fixed.



3
4
5
# File 'lib/rubyvis/property.rb', line 3

def fixed
  @fixed
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/rubyvis/property.rb', line 3

def id
  @id
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/rubyvis/property.rb', line 3

def name
  @name
end

#valueObject

Returns the value of attribute value.



3
4
5
# File 'lib/rubyvis/property.rb', line 3

def value
  @value
end