Class: Cloud::InstanceCategory

Inherits:
Object
  • Object
show all
Defined in:
lib/cloud/instancetype.rb

Overview

Describe a public cloud category

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject (readonly)

Returns the value of attribute description.



71
72
73
# File 'lib/cloud/instancetype.rb', line 71

def description
  @description
end

#featuresObject (readonly)

Returns the value of attribute features.



71
72
73
# File 'lib/cloud/instancetype.rb', line 71

def features
  @features
end

#keyObject (readonly)

Returns the value of attribute key.



71
72
73
# File 'lib/cloud/instancetype.rb', line 71

def key
  @key
end

#nameObject (readonly)

Returns the value of attribute name.



71
72
73
# File 'lib/cloud/instancetype.rb', line 71

def name
  @name
end