Exception: LicenseAcceptance::LicenseNotAcceptedError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/license_acceptance/acceptor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(product, missing_licenses) ⇒ LicenseNotAcceptedError

Returns a new instance of LicenseNotAcceptedError.



181
182
183
184
185
# File 'lib/license_acceptance/acceptor.rb', line 181

def initialize(product, missing_licenses)
  @product = product
  msg = "Missing licenses for the following:\n* " + missing_licenses.map(&:id).join("\n* ")
  super(msg)
end

Instance Attribute Details

#productObject (readonly)

Returns the value of attribute product.



180
181
182
# File 'lib/license_acceptance/acceptor.rb', line 180

def product
  @product
end