Class: ChefLicensing::License::FeatureEntitlement

Inherits:
Object
  • Object
show all
Defined in:
lib/chef-licensing/license.rb

Overview

License can be entitled to list of features.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entitlement_data) ⇒ FeatureEntitlement

Returns a new instance of FeatureEntitlement.



96
97
98
99
100
101
# File 'lib/chef-licensing/license.rb', line 96

def initialize(entitlement_data)
  @id = entitlement_data["id"]
  @name = entitlement_data["name"]
  @entitled = entitlement_data["entitled"]
  @status = entitlement_data["status"]
end

Instance Attribute Details

#entitledObject (readonly)

Returns the value of attribute entitled.



94
95
96
# File 'lib/chef-licensing/license.rb', line 94

def entitled
  @entitled
end

#idObject (readonly)

Returns the value of attribute id.



94
95
96
# File 'lib/chef-licensing/license.rb', line 94

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



94
95
96
# File 'lib/chef-licensing/license.rb', line 94

def name
  @name
end

#statusObject (readonly)

Returns the value of attribute status.



94
95
96
# File 'lib/chef-licensing/license.rb', line 94

def status
  @status
end