Method: Height::Model.for

Defined in:
lib/height/model.rb

.for(attrs) ⇒ Object



6
7
8
9
10
# File 'lib/height/model.rb', line 6

def self.for(attrs)
  model = attrs['model'].capitalize

  Object.const_get("Height::Model::#{model}").new(attrs)
end