Class: ChefLicensing::License::FeatureEntitlement
- Inherits:
-
Object
- Object
- ChefLicensing::License::FeatureEntitlement
- Defined in:
- lib/chef-licensing/license.rb
Overview
License can be entitled to list of features.
Instance Attribute Summary collapse
-
#entitled ⇒ Object
readonly
Returns the value of attribute entitled.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(entitlement_data) ⇒ FeatureEntitlement
constructor
A new instance of FeatureEntitlement.
Constructor Details
#initialize(entitlement_data) ⇒ FeatureEntitlement
Returns a new instance of FeatureEntitlement.
92 93 94 95 96 97 |
# File 'lib/chef-licensing/license.rb', line 92 def initialize(entitlement_data) @id = entitlement_data["id"] @name = entitlement_data["name"] @entitled = entitlement_data["entitled"] @status = entitlement_data["status"] end |
Instance Attribute Details
#entitled ⇒ Object (readonly)
Returns the value of attribute entitled.
90 91 92 |
# File 'lib/chef-licensing/license.rb', line 90 def entitled @entitled end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
90 91 92 |
# File 'lib/chef-licensing/license.rb', line 90 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
90 91 92 |
# File 'lib/chef-licensing/license.rb', line 90 def name @name end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
90 91 92 |
# File 'lib/chef-licensing/license.rb', line 90 def status @status end |