Class: TableSetting::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/table_setting/column.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title, method_token, options = {}) ⇒ Column

Returns a new instance of Column.



4
5
6
7
8
# File 'lib/table_setting/column.rb', line 4

def initialize(title, method_token, options = {})
  @title  = title
  @method_token = method_token
  @style_options = options
end

Instance Attribute Details

#method_tokenObject (readonly)

Returns the value of attribute method_token.



2
3
4
# File 'lib/table_setting/column.rb', line 2

def method_token
  @method_token
end

#style_optionsObject (readonly)

Returns the value of attribute style_options.



2
3
4
# File 'lib/table_setting/column.rb', line 2

def style_options
  @style_options
end

#titleObject (readonly)

Returns the value of attribute title.



2
3
4
# File 'lib/table_setting/column.rb', line 2

def title
  @title
end