class Opsmgr::Api::InstalledProductsResult

Attributes

installed_products[R]

Public Class Methods

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

Public Instance Methods

guid_for(product_type) click to toggle source
# File lib/opsmgr/api/results.rb, line 89
def guid_for(product_type)
  product_result = installed_products.find { |h| h.name == product_type }
  product_result ? product_result.fetch('guid') : nil
end