Class: Metadatum
- Inherits:
-
Object
- Object
- Metadatum
- Defined in:
- lib/activehistory/metadatum.rb
Instance Attribute Summary collapse
-
#event_id ⇒ Object
Returns the value of attribute event_id.
-
#key ⇒ Object
Returns the value of attribute key.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Metadatum
constructor
A new instance of Metadatum.
Constructor Details
#initialize(attrs) ⇒ Metadatum
Returns a new instance of Metadatum.
5 6 7 |
# File 'lib/activehistory/metadatum.rb', line 5 def initialize(attrs) attrs.each { |k, v| self.send("#{k}=", v) } end |
Instance Attribute Details
#event_id ⇒ Object
Returns the value of attribute event_id.
3 4 5 |
# File 'lib/activehistory/metadatum.rb', line 3 def event_id @event_id end |
#key ⇒ Object
Returns the value of attribute key.
3 4 5 |
# File 'lib/activehistory/metadatum.rb', line 3 def key @key end |
#value ⇒ Object
Returns the value of attribute value.
3 4 5 |
# File 'lib/activehistory/metadatum.rb', line 3 def value @value end |