class EntityStore::EventDataObject
Attributes
attrs[R]
Public Class Methods
new(attrs={})
click to toggle source
# File lib/entity_store/event_data_object.rb, line 5 def initialize(attrs={}) @attrs = attrs end
Public Instance Methods
[](key)
click to toggle source
# File lib/entity_store/event_data_object.rb, line 21 def [](key) attrs[key] end
entity_type()
click to toggle source
# File lib/entity_store/event_data_object.rb, line 13 def entity_type attrs['_entity_type'] end
id()
click to toggle source
# File lib/entity_store/event_data_object.rb, line 9 def id attrs['_id'].to_s end
type()
click to toggle source
# File lib/entity_store/event_data_object.rb, line 17 def type attrs['_type'] end