Class: Image
- Inherits:
-
Object
- Object
- Image
- Defined in:
- lib/smartos-manager/core.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#os ⇒ Object
readonly
Returns the value of attribute os.
-
#uuid ⇒ Object
readonly
Returns the value of attribute uuid.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Image
constructor
A new instance of Image.
Constructor Details
#initialize(data = {}) ⇒ Image
Returns a new instance of Image.
72 73 74 75 76 77 |
# File 'lib/smartos-manager/core.rb', line 72 def initialize(data = {}) @uuid = data.delete('uuid') @name = data.delete('name') @version = data.delete('version') @os = data.delete('os') end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
70 71 72 |
# File 'lib/smartos-manager/core.rb', line 70 def name @name end |
#os ⇒ Object (readonly)
Returns the value of attribute os.
70 71 72 |
# File 'lib/smartos-manager/core.rb', line 70 def os @os end |
#uuid ⇒ Object (readonly)
Returns the value of attribute uuid.
70 71 72 |
# File 'lib/smartos-manager/core.rb', line 70 def uuid @uuid end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
70 71 72 |
# File 'lib/smartos-manager/core.rb', line 70 def version @version end |