module Height::Model
Public Class Methods
for(attrs)
click to toggle source
# File lib/height/model.rb, line 8 def self.for(attrs) model = attrs['model'].capitalize model = attrs['type'].capitalize if model == 'View' Object.const_get("Height::Model::#{model}").new(attrs) end