Class: SmqlToAR::ConditionTypes::Functions::Offset
- Defined in:
- lib/smql_to_ar/condition_types.rb
Constant Summary collapse
- Name =
:offset
- Expected =
[Fixnum]
Instance Attribute Summary
Attributes inherited from Function
Instance Method Summary collapse
- #offset_build(builder, table) ⇒ Object (also: #build)
Methods inherited from Function
#initialize, inspect, try_parse
Methods included from Assertion
Constructor Details
This class inherits a constructor from SmqlToAR::ConditionTypes::Functions::Function
Instance Method Details
#offset_build(builder, table) ⇒ Object Also known as: build
472 473 474 475 |
# File 'lib/smql_to_ar/condition_types.rb', line 472 def offset_build builder, table raise_unless 1 == table.length, RootOnlyFunctionError.new( table) builder.offset = Array.wrap(@args).first.to_i end |