Class: Kameleon::DSL::Verify::Quantity
- Inherits:
-
Object
- Object
- Kameleon::DSL::Verify::Quantity
- Defined in:
- lib/kameleon/dsl/verify/presence.rb
Instance Attribute Summary collapse
-
#conditions ⇒ Object
readonly
Returns the value of attribute conditions.
-
#quantity ⇒ Object
readonly
Returns the value of attribute quantity.
Instance Method Summary collapse
-
#initialize(quantity, params) ⇒ Quantity
constructor
A new instance of Quantity.
Constructor Details
#initialize(quantity, params) ⇒ Quantity
Returns a new instance of Quantity.
162 163 164 165 166 |
# File 'lib/kameleon/dsl/verify/presence.rb', line 162 def initialize(quantity, params) @conditions = [] @quantity = quantity parse_params(params) end |
Instance Attribute Details
#conditions ⇒ Object (readonly)
Returns the value of attribute conditions.
159 160 161 |
# File 'lib/kameleon/dsl/verify/presence.rb', line 159 def conditions @conditions end |
#quantity ⇒ Object (readonly)
Returns the value of attribute quantity.
160 161 162 |
# File 'lib/kameleon/dsl/verify/presence.rb', line 160 def quantity @quantity end |