class Opsmgr::Api::ProductManifestResult

Constants

Product
Stemcell

Attributes

manifest_hash[R]

Public Class Methods

new(manifest_hash) click to toggle source
# File lib/opsmgr/api/results.rb, line 213
def initialize(manifest_hash)
  @manifest_hash = manifest_hash
end

Public Instance Methods

releases() click to toggle source
# File lib/opsmgr/api/results.rb, line 217
def releases
  manifest_hash.fetch('releases').map { |h| Product.new(h.fetch('name'), h.fetch('version')) }
end
stemcell() click to toggle source
# File lib/opsmgr/api/results.rb, line 221
def stemcell
  stemcell_hash = manifest_hash.fetch('resource_pools').first.fetch('stemcell')
  Stemcell.new(stemcell_hash.fetch('name'), stemcell_hash.fetch('version'))
end