Class: Kameleon::DSL::Verify::Quantity

Inherits:
Object
  • Object
show all
Defined in:
lib/kameleon/dsl/verify/presence.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#conditionsObject (readonly)

Returns the value of attribute conditions.



159
160
161
# File 'lib/kameleon/dsl/verify/presence.rb', line 159

def conditions
  @conditions
end

#quantityObject (readonly)

Returns the value of attribute quantity.



160
161
162
# File 'lib/kameleon/dsl/verify/presence.rb', line 160

def quantity
  @quantity
end