Exception: LicenseAcceptance::LicenseNotAcceptedError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- LicenseAcceptance::LicenseNotAcceptedError
- Defined in:
- lib/license_acceptance/acceptor.rb
Instance Attribute Summary collapse
-
#product ⇒ Object
readonly
Returns the value of attribute product.
Instance Method Summary collapse
-
#initialize(product, missing_licenses) ⇒ LicenseNotAcceptedError
constructor
A new instance of LicenseNotAcceptedError.
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
#product ⇒ Object (readonly)
Returns the value of attribute product.
163 164 165 |
# File 'lib/license_acceptance/acceptor.rb', line 163 def product @product end |