Class: Validic::Organization
- Inherits:
-
Object
- Object
- Validic::Organization
- Defined in:
- lib/validic/organization.rb
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Organization
constructor
A new instance of Organization.
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 |