Class: Mashery::QueryBuilder::From
- Inherits:
-
Object
- Object
- Mashery::QueryBuilder::From
- Defined in:
- lib/mashery/query_builder.rb
Instance Method Summary collapse
-
#initialize(argument) ⇒ From
constructor
A new instance of From.
- #to_s ⇒ Object
Constructor Details
#initialize(argument) ⇒ From
Returns a new instance of From.
86 87 88 |
# File 'lib/mashery/query_builder.rb', line 86 def initialize(argument) @argument = argument end |
Instance Method Details
#to_s ⇒ Object
90 91 92 93 |
# File 'lib/mashery/query_builder.rb', line 90 def to_s raise MissingFrom.new if @argument.nil? "FROM #{@argument}" end |