Method: PEROBS::DynamoDB#get_object

Defined in:
lib/perobs/DynamoDB.rb

#get_object(id) ⇒ Hash

Load the given object from the filesystem.

Parameters:

  • id (Fixnum or Bignum)

    object ID

Returns:

  • (Hash)

    Object as defined by PEROBS::ObjectBase or nil if ID does not exist



122
123
124
# File 'lib/perobs/DynamoDB.rb', line 122

def get_object(id)
  (item = dynamo_get_item(id.to_s)) ? deserialize(item) : nil
end