Module: Sire

Defined in:
lib/sire.rb,
lib/sire/entity.rb,
lib/sire/struct.rb,
lib/sire/relation.rb,
lib/sire/aggregate.rb,
lib/sire/entity_builder.rb,
lib/sire/immutable_delegator.rb

Defined Under Namespace

Modules: EntityBuilder Classes: Aggregate, Entity, ImmutableDelegator, Relation, Struct

Class Method Summary collapse

Class Method Details

.aggregate(*entity_types) ⇒ Object



15
16
17
# File 'lib/sire.rb', line 15

def aggregate(*entity_types)
  Aggregate.define(*entity_types)
end

.entity(*attributes) ⇒ Object



7
8
9
# File 'lib/sire.rb', line 7

def entity(*attributes)
  Entity.define(*attributes)
end

.relation(*entity_types) ⇒ Object



11
12
13
# File 'lib/sire.rb', line 11

def relation(*entity_types)
  Relation.define(*entity_types)
end