class StatelyDB::Transaction::Transaction
def get(key_path)
-
(StatelyDB::Error::NotFound)
- if the item is not found -
(StatelyDB::Error::InvalidParameters)
- if the parameters are invalid
Returns:
-
(StatelyDB::Item, NilClass)
- the item or nil if not found
Parameters:
-
key_path
(String
) -- the path to the item
def get(key_path) resp = get_batch(key_path) # Always return a single Item. resp.first end