Method: ChefAPI::Authentication.from_options
- Defined in:
- lib/chef-api/authentication.rb
.from_options(options = {}) ⇒ Object
Create a new signing object from the given options. All options are required.
42 43 44 45 46 47 48 49 50 |
# File 'lib/chef-api/authentication.rb', line 42 def ( = {}) user = .fetch(:user) key = .fetch(:key) verb = .fetch(:verb) path = .fetch(:path) body = .fetch(:body) new(user, key, verb, path, body) end |