Class: Cloud::InstanceCategory
- Inherits:
-
Object
- Object
- Cloud::InstanceCategory
- Defined in:
- lib/cloud/instancetype.rb
Overview
Describe a public cloud category
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#features ⇒ Object
readonly
Returns the value of attribute features.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(key, args) ⇒ InstanceCategory
constructor
A new instance of InstanceCategory.
Constructor Details
#initialize(key, args) ⇒ InstanceCategory
Returns a new instance of InstanceCategory.
73 74 75 76 77 78 |
# File 'lib/cloud/instancetype.rb', line 73 def initialize(key, args) @key = key @name = args["name"] @description = args["description"] @features = args["features"] end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
71 72 73 |
# File 'lib/cloud/instancetype.rb', line 71 def description @description end |
#features ⇒ Object (readonly)
Returns the value of attribute features.
71 72 73 |
# File 'lib/cloud/instancetype.rb', line 71 def features @features end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
71 72 73 |
# File 'lib/cloud/instancetype.rb', line 71 def key @key end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
71 72 73 |
# File 'lib/cloud/instancetype.rb', line 71 def name @name end |