Class: Yesterday::VersionedObjectCreator

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hashObject

Returns the value of attribute hash

Returns:

  • (Object)

    the current value of hash



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

def hash
  @hash
end

Instance Method Details

#to_objectObject



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

def to_object
  @object ||= deserialize(hash)
end