Class: ChefLicensing::License::SoftwareEntitlement
- Inherits:
-
Object
- Object
- ChefLicensing::License::SoftwareEntitlement
- Defined in:
- lib/chef-licensing/license.rb
Overview
License can be entitled to list of softwares.
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) ⇒ SoftwareEntitlement
constructor
A new instance of SoftwareEntitlement.
Constructor Details
#initialize(entitlement_data) ⇒ SoftwareEntitlement
Returns a new instance of SoftwareEntitlement.
108 109 110 111 112 113 |
# File 'lib/chef-licensing/license.rb', line 108 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.
106 107 108 |
# File 'lib/chef-licensing/license.rb', line 106 def entitled @entitled end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
106 107 108 |
# File 'lib/chef-licensing/license.rb', line 106 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
106 107 108 |
# File 'lib/chef-licensing/license.rb', line 106 def name @name end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
106 107 108 |
# File 'lib/chef-licensing/license.rb', line 106 def status @status end |