Class: OvirtSDK4::Application
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Application
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ Application
constructor
Creates a new instance of the Application class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#vm ⇒ Vm
Returns the value of the
vm
attribute. -
#vm=(value) ⇒ Object
Sets the value of the
vm
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Application
Creates a new instance of the OvirtSDK4::Application class.
30317 30318 30319 30320 |
# File 'lib/ovirtsdk4/types.rb', line 30317 def initialize(opts = {}) super(opts) self.vm = opts[:vm] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
30325 30326 30327 30328 |
# File 'lib/ovirtsdk4/types.rb', line 30325 def ==(other) super && @vm == other.vm end |
#comment ⇒ String
Returns the value of the comment
attribute.
30207 30208 30209 |
# File 'lib/ovirtsdk4/types.rb', line 30207 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
30216 30217 30218 |
# File 'lib/ovirtsdk4/types.rb', line 30216 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
30225 30226 30227 |
# File 'lib/ovirtsdk4/types.rb', line 30225 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
30234 30235 30236 |
# File 'lib/ovirtsdk4/types.rb', line 30234 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
30333 30334 30335 30336 |
# File 'lib/ovirtsdk4/types.rb', line 30333 def hash super + @vm.hash end |
#id ⇒ String
Returns the value of the id
attribute.
30243 30244 30245 |
# File 'lib/ovirtsdk4/types.rb', line 30243 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
30252 30253 30254 |
# File 'lib/ovirtsdk4/types.rb', line 30252 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
30261 30262 30263 |
# File 'lib/ovirtsdk4/types.rb', line 30261 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
30270 30271 30272 |
# File 'lib/ovirtsdk4/types.rb', line 30270 def name=(value) @name = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
30279 30280 30281 |
# File 'lib/ovirtsdk4/types.rb', line 30279 def vm @vm end |
#vm=(value) ⇒ Object
Sets the value of the vm
attribute.
The value
parameter can be an instance of Vm or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
30292 30293 30294 30295 30296 30297 |
# File 'lib/ovirtsdk4/types.rb', line 30292 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |