Class: CommandPost::AggregatePointer

Inherits:
Hash
  • Object
show all
Defined in:
lib/command_post/persistence/aggregate_pointer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ AggregatePointer

Returns a new instance of AggregatePointer.



8
9
10
11
12
13
14
# File 'lib/command_post/persistence/aggregate_pointer.rb', line 8

def initialize hash
    @aggregate_type =         hash[:aggregate_type]
    @aggregate_id =           hash[:aggregate_id]
    self[:aggregate_type] =  hash[:aggregate_type]
    self[:aggregate_id] =    hash[:aggregate_id]
    self[:class_name] =      'AggregatePointer'
end

Instance Attribute Details

#aggregate_idObject

Returns the value of attribute aggregate_id.



6
7
8
# File 'lib/command_post/persistence/aggregate_pointer.rb', line 6

def aggregate_id
  @aggregate_id
end

#aggregate_typeObject

Returns the value of attribute aggregate_type.



6
7
8
# File 'lib/command_post/persistence/aggregate_pointer.rb', line 6

def aggregate_type
  @aggregate_type
end