Class: Rgviz::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/rgviz/table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



21
22
23
# File 'lib/rgviz/table.rb', line 21

def id
  @id
end

#labelObject

Returns the value of attribute label.



22
23
24
# File 'lib/rgviz/table.rb', line 22

def label
  @label
end

#pObject

Returns the value of attribute p.



26
27
28
# File 'lib/rgviz/table.rb', line 26

def p
  @p
end

#patternObject

Returns the value of attribute pattern.



24
25
26
# File 'lib/rgviz/table.rb', line 24

def pattern
  @pattern
end

#roleObject

Returns the value of attribute role.



25
26
27
# File 'lib/rgviz/table.rb', line 25

def role
  @role
end

#typeObject

Returns the value of attribute type.



23
24
25
# File 'lib/rgviz/table.rb', line 23

def type
  @type
end