Class: BB::Converter::Table
- Inherits:
-
Object
- Object
- BB::Converter::Table
- Defined in:
- lib/b_b/converter/table.rb
Constant Summary collapse
- TEMPLATE =
{ subquery: "(%s)", table_date_range: "TABLE_DATE_RANGE(%s, %s, %s)" }.freeze
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
- #convert ⇒ Object
-
#initialize(value, options = {}) ⇒ Table
constructor
A new instance of Table.
Constructor Details
#initialize(value, options = {}) ⇒ Table
Returns a new instance of Table.
11 12 13 14 |
# File 'lib/b_b/converter/table.rb', line 11 def initialize(value, = {}) @value = value @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
9 10 11 |
# File 'lib/b_b/converter/table.rb', line 9 def @options end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
9 10 11 |
# File 'lib/b_b/converter/table.rb', line 9 def value @value end |
Class Method Details
.convert(value, options = {}) ⇒ Object
43 44 45 |
# File 'lib/b_b/converter/table.rb', line 43 def convert(value, = {}) new(value, ).convert end |