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.



164
165
166
167
168
# File 'lib/license_acceptance/acceptor.rb', line 164

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.



163
164
165
# File 'lib/license_acceptance/acceptor.rb', line 163

def product
  @product
end