Class: QueryReport::Chart::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/query_report/chart/chart_column.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title, type) ⇒ Column

Returns a new instance of Column.



6
7
8
9
# File 'lib/query_report/chart/chart_column.rb', line 6

def initialize(title, type)
  @title = title
  @type = type
end

Instance Attribute Details

#titleObject (readonly)

Returns the value of attribute title.



4
5
6
# File 'lib/query_report/chart/chart_column.rb', line 4

def title
  @title
end

#typeObject (readonly)

Returns the value of attribute type.



4
5
6
# File 'lib/query_report/chart/chart_column.rb', line 4

def type
  @type
end