Method: PEROBS::DynamoDB#put_hash

Defined in:
lib/perobs/DynamoDB.rb

#put_hash(name, hash) ⇒ Object

Store a simple Hash as a JSON encoded file into the DB directory. numbers.

Parameters:

  • name (String)

    Name of the hash. Will be used as file name.

  • hash (Hash)

    A Hash that maps String objects to strings or



97
98
99
# File 'lib/perobs/DynamoDB.rb', line 97

def put_hash(name, hash)
  dynamo_put_item(name, hash.to_json)
end