Class: Pwnix::Api::Client::Cookbook
- Inherits:
-
Object
- Object
- Pwnix::Api::Client::Cookbook
- Includes:
- HTTParty, HTTPartyTime
- Defined in:
- lib/pwnix-api-client/node/cookbook.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ Cookbook
constructor
A new instance of Cookbook.
- #metadata ⇒ Object
- #name ⇒ Object
Methods included from HTTPartyTime
#clear_errors, #errors, #has_errors?, included, #last_error, #safe_api_call
Constructor Details
#initialize(name) ⇒ Cookbook
Returns a new instance of Cookbook.
8 9 10 |
# File 'lib/pwnix-api-client/node/cookbook.rb', line 8 def initialize(name) @name = name end |
Instance Method Details
#metadata ⇒ Object
12 13 14 |
# File 'lib/pwnix-api-client/node/cookbook.rb', line 12 def safe_api_call("/node/cookbook/#{@name}/metadata") end |
#name ⇒ Object
16 17 18 |
# File 'lib/pwnix-api-client/node/cookbook.rb', line 16 def name safe_api_call("/node/cookbook/#{@name}/name") end |