Class: Yesterday::Serializer
- Inherits:
-
Struct
- Object
- Struct
- Yesterday::Serializer
- Defined in:
- lib/yesterday/serializer.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
Returns the value of attribute object.
Instance Method Summary collapse
Instance Attribute Details
#object ⇒ Object
Returns the value of attribute object
2 3 4 |
# File 'lib/yesterday/serializer.rb', line 2 def object @object end |
Instance Method Details
#to_hash ⇒ Object
4 5 6 |
# File 'lib/yesterday/serializer.rb', line 4 def to_hash @hash ||= hash_object(object) end |