Class: TableInspector::PresenterOption

Inherits:
Object
  • Object
show all
Defined in:
lib/table_inspector/presenter_option.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ PresenterOption

Returns a new instance of PresenterOption.



6
7
8
9
10
# File 'lib/table_inspector/presenter_option.rb', line 6

def initialize(options = {})
  @sql_type = options.fetch(:sql_type, false)
  @comment_only = options.fetch(:comment_only, false)
  @colorize = options.fetch(:colorize, false)
end

Instance Attribute Details

#colorizeObject

Returns the value of attribute colorize.



4
5
6
# File 'lib/table_inspector/presenter_option.rb', line 4

def colorize
  @colorize
end

#comment_onlyObject

Returns the value of attribute comment_only.



4
5
6
# File 'lib/table_inspector/presenter_option.rb', line 4

def comment_only
  @comment_only
end

#sql_typeObject

Returns the value of attribute sql_type.



4
5
6
# File 'lib/table_inspector/presenter_option.rb', line 4

def sql_type
  @sql_type
end