Class: SQLSearch::Atoms::UnaryScalar
- Defined in:
- lib/sql_search_parser.rb
Instance Attribute Summary collapse
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Scalar
Instance Method Summary collapse
-
#initialize(options) ⇒ UnaryScalar
constructor
A new instance of UnaryScalar.
- #to_s ⇒ Object
Constructor Details
#initialize(options) ⇒ UnaryScalar
Returns a new instance of UnaryScalar.
90 91 92 93 |
# File 'lib/sql_search_parser.rb', line 90 def initialize @value = [:value] @operation = [:operation] end |
Instance Attribute Details
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
89 90 91 |
# File 'lib/sql_search_parser.rb', line 89 def operation @operation end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
89 90 91 |
# File 'lib/sql_search_parser.rb', line 89 def value @value end |
Instance Method Details
#to_s ⇒ Object
95 96 97 |
# File 'lib/sql_search_parser.rb', line 95 def to_s "#{operation}#{value}" end |