Class: Rgviz::Column
- Inherits:
-
Object
- Object
- Rgviz::Column
- Defined in:
- lib/rgviz/table.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#label ⇒ Object
Returns the value of attribute label.
-
#p ⇒ Object
Returns the value of attribute p.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#role ⇒ Object
Returns the value of attribute role.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Column
constructor
A new instance of Column.
Constructor Details
#initialize(attributes = {}) ⇒ Column
Returns a new instance of Column.
28 29 30 31 32 |
# File 'lib/rgviz/table.rb', line 28 def initialize(attributes = {}) attributes.each do |key, value| self.send "#{key}=", value end end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
21 22 23 |
# File 'lib/rgviz/table.rb', line 21 def id @id end |
#label ⇒ Object
Returns the value of attribute label.
22 23 24 |
# File 'lib/rgviz/table.rb', line 22 def label @label end |
#p ⇒ Object
Returns the value of attribute p.
26 27 28 |
# File 'lib/rgviz/table.rb', line 26 def p @p end |
#pattern ⇒ Object
Returns the value of attribute pattern.
24 25 26 |
# File 'lib/rgviz/table.rb', line 24 def pattern @pattern end |
#role ⇒ Object
Returns the value of attribute role.
25 26 27 |
# File 'lib/rgviz/table.rb', line 25 def role @role end |
#type ⇒ Object
Returns the value of attribute type.
23 24 25 |
# File 'lib/rgviz/table.rb', line 23 def type @type end |