Module: Fried::Schema::DataEntity::ClassMethods

Defined in:
lib/fried/schema/data_entity.rb

Instance Method Summary collapse

Instance Method Details

#build(attributes = {}) ⇒ Object



12
13
14
15
16
17
# File 'lib/fried/schema/data_entity.rb', line 12

def build(attributes = {})
  new.tap do |instance|
    schema = GetDefinition.(self)
    HashToAttributes.(schema, attributes, instance)
  end
end