Module: EntityProjection::Fixtures::Controls::Event

Defined in:
lib/entity_projection/fixtures/controls/event.rb

Defined Under Namespace

Classes: Example

Class Method Summary collapse

Class Method Details

.amountObject



20
21
22
# File 'lib/entity_projection/fixtures/controls/event.rb', line 20

def self.amount
  11
end

.exampleObject



5
6
7
8
9
10
11
12
13
14
# File 'lib/entity_projection/fixtures/controls/event.rb', line 5

def self.example
  example = Example.new

  example.example_id = example_id
  example.amount = 11
  example.time = Time::Effective.example
  example.processed_time = Time::Processed.example

  example
end

.example_idObject



16
17
18
# File 'lib/entity_projection/fixtures/controls/event.rb', line 16

def self.example_id
  Entity.id
end