Class: ODDB::Business::Company
- Defined in:
- lib/oddb/export/yaml.rb,
lib/oddb/business/company.rb,
lib/oddb/persistence/odba/business/company.rb
Constant Summary
Constants included from OddbUri
Instance Method Summary collapse
Methods inherited from Model
#__odba_delete__, #__odba_save__, _serializables, belongs_to, connections, connector, connectors, #data_origin, #data_origins, delegates, #delete, find_by_uid, has_many, is_coded, m10l_document, multilingual, #odba_serializables, #oid, on_delete, on_save, predicates, #save, #saved?, serializables, serialize, singular
Methods included from ODBA::Persistable
Methods included from Yaml
append_features, #to_yaml_properties
Methods included from OddbUri
#to_yaml, #to_yaml_map, #to_yaml_type
Instance Method Details
#packages ⇒ Object
11 12 13 14 15 |
# File 'lib/oddb/business/company.rb', line 11 def packages products.inject([]) { |memo, prod| memo.concat(prod.packages) } end |