Method: Orchestrate::Client#get
- Defined in:
- lib/orchestrate/client.rb
permalink #get(collection, key, ref = nil) ⇒ Object
Retrieves the value assigned to a key.
If a ref
parameter is provided, retrieves a historical value for the
key
100 101 102 103 104 |
# File 'lib/orchestrate/client.rb', line 100 def get(collection, key, ref=nil) path = [collection, key] path.concat(['refs', ref]) if ref send_request :get, path, { response: API::ItemResponse } end |