Class: MetaWhere::Compound

Inherits:
Object
  • Object
show all
Includes:
ConditionOperators
Defined in:
lib/meta_where/compound.rb

Direct Known Subclasses

And, Or

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ConditionOperators

#&, #-, #-@, #|

Constructor Details

#initialize(condition1, condition2) ⇒ Compound

Returns a new instance of Compound.



9
10
11
12
# File 'lib/meta_where/compound.rb', line 9

def initialize(condition1, condition2)
  @condition1 = condition1
  @condition2 = condition2
end

Instance Attribute Details

#condition1Object (readonly)

Returns the value of attribute condition1.



7
8
9
# File 'lib/meta_where/compound.rb', line 7

def condition1
  @condition1
end

#condition2Object (readonly)

Returns the value of attribute condition2.



7
8
9
# File 'lib/meta_where/compound.rb', line 7

def condition2
  @condition2
end