Class: EvoleapLicensing::ComponentCheckoutResult
- Inherits:
-
Object
- Object
- EvoleapLicensing::ComponentCheckoutResult
- Defined in:
- lib/evoleap_licensing/results/component_checkout_result.rb
Instance Attribute Summary collapse
-
#component_entitlements ⇒ Object
readonly
Returns the value of attribute component_entitlements.
-
#components ⇒ Object
readonly
Returns the value of attribute components.
-
#failure_reason ⇒ Object
readonly
Returns the value of attribute failure_reason.
Instance Method Summary collapse
-
#initialize(success:, failure_reason: nil, components: [], component_entitlements: []) ⇒ ComponentCheckoutResult
constructor
A new instance of ComponentCheckoutResult.
- #success? ⇒ Boolean
Constructor Details
#initialize(success:, failure_reason: nil, components: [], component_entitlements: []) ⇒ ComponentCheckoutResult
Returns a new instance of ComponentCheckoutResult.
7 8 9 10 11 12 |
# File 'lib/evoleap_licensing/results/component_checkout_result.rb', line 7 def initialize(success:, failure_reason: nil, components: [], component_entitlements: []) @success = success @failure_reason = failure_reason @components = components @component_entitlements = component_entitlements end |
Instance Attribute Details
#component_entitlements ⇒ Object (readonly)
Returns the value of attribute component_entitlements.
5 6 7 |
# File 'lib/evoleap_licensing/results/component_checkout_result.rb', line 5 def component_entitlements @component_entitlements end |
#components ⇒ Object (readonly)
Returns the value of attribute components.
5 6 7 |
# File 'lib/evoleap_licensing/results/component_checkout_result.rb', line 5 def components @components end |
#failure_reason ⇒ Object (readonly)
Returns the value of attribute failure_reason.
5 6 7 |
# File 'lib/evoleap_licensing/results/component_checkout_result.rb', line 5 def failure_reason @failure_reason end |
Instance Method Details
#success? ⇒ Boolean
14 15 16 |
# File 'lib/evoleap_licensing/results/component_checkout_result.rb', line 14 def success? @success end |