Class: OvirtSDK4::MDevType
- 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. -
#available_instances ⇒ Integer
Returns the value of the
available_instances
attribute. -
#available_instances=(value) ⇒ Object
Sets the value of the
available_instances
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.
-
#human_readable_name ⇒ String
Returns the value of the
human_readable_name
attribute. -
#human_readable_name=(value) ⇒ Object
Sets the value of the
human_readable_name
attribute. -
#initialize(opts = {}) ⇒ MDevType
constructor
Creates a new instance of the MDevType class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ MDevType
Creates a new instance of the OvirtSDK4::MDevType class.
9283 9284 9285 9286 9287 9288 9289 |
# File 'lib/ovirtsdk4/types.rb', line 9283 def initialize(opts = {}) super(opts) self.available_instances = opts[:available_instances] self.description = opts[:description] self.human_readable_name = opts[:human_readable_name] self.name = opts[:name] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
9294 9295 9296 9297 9298 9299 9300 |
# File 'lib/ovirtsdk4/types.rb', line 9294 def ==(other) super && @available_instances == other.available_instances && @description == other.description && @human_readable_name == other.human_readable_name && @name == other.name end |
#available_instances ⇒ Integer
Returns the value of the available_instances
attribute.
9200 9201 9202 |
# File 'lib/ovirtsdk4/types.rb', line 9200 def available_instances @available_instances end |
#available_instances=(value) ⇒ Object
Sets the value of the available_instances
attribute.
9209 9210 9211 |
# File 'lib/ovirtsdk4/types.rb', line 9209 def available_instances=(value) @available_instances = value end |
#description ⇒ String
Returns the value of the description
attribute.
9218 9219 9220 |
# File 'lib/ovirtsdk4/types.rb', line 9218 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
9227 9228 9229 |
# File 'lib/ovirtsdk4/types.rb', line 9227 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
9305 9306 9307 9308 9309 9310 9311 |
# File 'lib/ovirtsdk4/types.rb', line 9305 def hash super + @available_instances.hash + @description.hash + @human_readable_name.hash + @name.hash end |
#human_readable_name ⇒ String
Returns the value of the human_readable_name
attribute.
9236 9237 9238 |
# File 'lib/ovirtsdk4/types.rb', line 9236 def human_readable_name @human_readable_name end |
#human_readable_name=(value) ⇒ Object
Sets the value of the human_readable_name
attribute.
9245 9246 9247 |
# File 'lib/ovirtsdk4/types.rb', line 9245 def human_readable_name=(value) @human_readable_name = value end |
#name ⇒ String
Returns the value of the name
attribute.
9254 9255 9256 |
# File 'lib/ovirtsdk4/types.rb', line 9254 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
9263 9264 9265 |
# File 'lib/ovirtsdk4/types.rb', line 9263 def name=(value) @name = value end |