Class: Yesterday::Serializer

Inherits:
Struct
  • Object
show all
Defined in:
lib/yesterday/serializer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#objectObject

Returns the value of attribute object

Returns:

  • (Object)

    the current value of object



2
3
4
# File 'lib/yesterday/serializer.rb', line 2

def object
  @object
end

Instance Method Details

#to_hashObject



4
5
6
# File 'lib/yesterday/serializer.rb', line 4

def to_hash
  @hash ||= hash_object(object)
end