Module: Datamappify::Entity::Composable::DSL

Defined in:
lib/datamappify/entity/composable.rb

Instance Method Summary collapse

Instance Method Details

#attributes_from(entity_class, options = {}) ⇒ void

This method returns an undefined value.

Parameters:

  • entity_class (Entity)
  • options (Hash) (defaults to: {})


18
19
20
21
# File 'lib/datamappify/entity/composable.rb', line 18

def attributes_from(entity_class, options = {})
  Attributes.build(self, entity_class, options)
  Validators.build(self, entity_class, options)
end