Class: MetaWhere::Compound
- Inherits:
-
Object
- Object
- MetaWhere::Compound
- Includes:
- ConditionOperators
- Defined in:
- lib/meta_where/compound.rb
Instance Attribute Summary collapse
-
#condition1 ⇒ Object
readonly
Returns the value of attribute condition1.
-
#condition2 ⇒ Object
readonly
Returns the value of attribute condition2.
Instance Method Summary collapse
-
#initialize(condition1, condition2) ⇒ Compound
constructor
A new instance of Compound.
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
#condition1 ⇒ Object (readonly)
Returns the value of attribute condition1.
7 8 9 |
# File 'lib/meta_where/compound.rb', line 7 def condition1 @condition1 end |
#condition2 ⇒ Object (readonly)
Returns the value of attribute condition2.
7 8 9 |
# File 'lib/meta_where/compound.rb', line 7 def condition2 @condition2 end |