class Berkshelf::APIClient::RemoteCookbook
indexed by the Berkshelf API Server.
by sending messages to a {Berkshelf::APIClient} and used to download cookbooks
A representation of cookbook metadata indexed by a Berkshelf API Server. Returned
def dependencies
-
(Hash)
-
def dependencies @attributes[:dependencies] end
def initialize(name, version, attributes = {})
-
attributes
(Hash
) -- -
version
(String
) -- -
name
(String
) --
def initialize(name, version, attributes = {}) @name = name @version = version @attributes = ::Mash.new(attributes) end
def location_path
-
(String)
-
def location_path @attributes[:location_path] end
def location_type
-
(Symbol)
-
def location_type @attributes[:location_type].to_sym end
def platforms
-
(Hash)
-
def platforms @attributes[:platforms] end
def to_hash
def to_hash { name: name, version: version, } end
def to_json(options = {})
def to_json(options = {}) ::JSON.pretty_generate(to_hash, options) end