Class: Parse::Query::RelatedToCondition
- Inherits:
-
Object
- Object
- Parse::Query::RelatedToCondition
- Defined in:
- lib/parse/query.rb
Instance Method Summary collapse
-
#initialize(column_name, pointer) ⇒ RelatedToCondition
constructor
A new instance of RelatedToCondition.
- #to_s ⇒ Object
Constructor Details
#initialize(column_name, pointer) ⇒ RelatedToCondition
Returns a new instance of RelatedToCondition.
343 344 345 346 |
# File 'lib/parse/query.rb', line 343 def initialize column_name, pointer @column_name = column_name @pointer = pointer end |
Instance Method Details
#to_s ⇒ Object
348 349 350 |
# File 'lib/parse/query.rb', line 348 def to_s %Q|"$relatedTo":{"object":#{@pointer.to_json},"key":"#{@column_name}"}| end |