Class: Atomsphere::Query::Builder::Property

Inherits:
Object
  • Object
show all
Defined in:
lib/atomsphere/query/builder/property.rb

Instance Method Summary collapse

Constructor Details

#initialize(expression, property) ⇒ Property

Returns a new instance of Property.



5
6
7
8
# File 'lib/atomsphere/query/builder/property.rb', line 5

def initialize(expression, property)
  @expression = expression
  @property = property
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args, &block) ⇒ Object



10
11
12
# File 'lib/atomsphere/query/builder/property.rb', line 10

def method_missing m, *args, &block
  __operator(m, *args) if SimpleExpression::OPERATORS.keys.include? m
end