class ChefAPI::Resource::Cookbook
In the real world, a “cookbook” is a single entity with multiple versions. In Chef land, a “cookbook” is actually just a wrapper around a collection of cookbook_version
objects that fully detail the layout of a cookbook.
Public Class Methods
from_json(response, prefix = {})
click to toggle source
# File lib/chef-api/resources/cookbook.rb, line 19 def from_json(response, prefix = {}) new(name: response.keys.first) end