Class: Hecks::QuerySpecification::Common::WhereClause
- Inherits:
-
Struct
- Object
- Struct
- Hecks::QuerySpecification::Common::WhereClause
- Defined in:
- lib/hecks/query_specification/common/where_clause.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
Returns the value of attribute field.
-
#op ⇒ Object
Returns the value of attribute op.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#field ⇒ Object
Returns the value of attribute field
4 5 6 |
# File 'lib/hecks/query_specification/common/where_clause.rb', line 4 def field @field end |
#op ⇒ Object
Returns the value of attribute op
4 5 6 |
# File 'lib/hecks/query_specification/common/where_clause.rb', line 4 def op @op end |
#value ⇒ Object
Returns the value of attribute value
4 5 6 |
# File 'lib/hecks/query_specification/common/where_clause.rb', line 4 def value @value end |
Instance Method Details
#to_h ⇒ Object
5 |
# File 'lib/hecks/query_specification/common/where_clause.rb', line 5 def to_h = { field: field.to_s, op: op.to_s, value: QuerySpecification.render_value(value) } |