Created
July 4, 2013 14:53
-
-
Save jmeirow/5928436 to your computer and use it in GitHub Desktop.
aggregate pointer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AggregatePointer < Hash | |
attr_accessor :aggregate_type, :aggregate_id | |
def initialize aggregate_type, aggregate_id | |
@aggregate_type = aggregate_type | |
@aggregate_id = aggregate_id | |
self['aggregate_type'] = aggregate_type | |
self['aggregate_id'] = aggregate_id | |
self['class_name'] = 'AggregatePointer' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment