Class: Kameleon::DSL::Verify::Presence

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*params) ⇒ Presence

Returns a new instance of Presence.



8
9
10
11
12
13
# File 'lib/kameleon/dsl/verify/presence.rb', line 8

def initialize(*params)
  @params = params
  @conditions = []

  parse_conditions
end

Instance Attribute Details

#conditionsObject

Returns the value of attribute conditions.



6
7
8
# File 'lib/kameleon/dsl/verify/presence.rb', line 6

def conditions
  @conditions
end

#paramsObject

Returns the value of attribute params.



6
7
8
# File 'lib/kameleon/dsl/verify/presence.rb', line 6

def params
  @params
end