Class: Validic::Organization

Inherits:
Object
  • Object
show all
Defined in:
lib/validic/organization.rb

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Organization

Returns a new instance of Organization.



3
4
5
6
7
8
# File 'lib/validic/organization.rb', line 3

def initialize(attrs = {})
  attrs.each do |k, v|
    instance_variable_set("@#{k}", v)
    self.class.send(:attr_reader, k)
  end
end