Class: CommandPost::AggregatePointer
- Inherits:
-
Hash
- Object
- Hash
- CommandPost::AggregatePointer
- Defined in:
- lib/command_post/persistence/aggregate_pointer.rb
Instance Attribute Summary collapse
-
#aggregate_id ⇒ Object
Returns the value of attribute aggregate_id.
-
#aggregate_type ⇒ Object
Returns the value of attribute aggregate_type.
Instance Method Summary collapse
-
#initialize(hash) ⇒ AggregatePointer
constructor
A new instance of AggregatePointer.
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_id ⇒ Object
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_type ⇒ Object
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 |