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.


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

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


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

def product
  @product
end