Method: IdentityMind::Params#initialize
- Defined in:
- lib/identity_mind/params.rb
#initialize(hash = nil) ⇒ Params
Returns a new instance of Params.
14 15 16 17 18 19 20 21 |
# File 'lib/identity_mind/params.rb', line 14 def initialize(hash = nil) @table = {} return unless hash hash.each_pair do |k, v| @table[k.to_sym] = parse_param(v, k) end end |