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