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.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(args) ⇒ InstanceCategory
constructor
A new instance of InstanceCategory.
Constructor Details
#initialize(args) ⇒ InstanceCategory
Returns a new instance of InstanceCategory.
60 61 62 63 64 |
# File 'lib/cloud/instancetype.rb', line 60 def initialize(args) @name = args["key"] @description = args["description"] @features = args["features"] end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
58 59 60 |
# File 'lib/cloud/instancetype.rb', line 58 def description @description end |
#features ⇒ Object (readonly)
Returns the value of attribute features.
58 59 60 |
# File 'lib/cloud/instancetype.rb', line 58 def features @features end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
58 59 60 |
# File 'lib/cloud/instancetype.rb', line 58 def name @name end |