class OvirtSDK4::MDevType

Public Class Methods

new(opts = {}) click to toggle source

Creates a new instance of the {MDevType} class.

@param opts [Hash] A hash containing the attributes of the object. The keys of the hash

should be symbols corresponding to the names of the attributes. The values of the hash
should be the values of the attributes.

@option opts [Integer] :available_instances The value of attribute `available_instances`.

@option opts [String] :description The value of attribute `description`.

@option opts [String] :human_readable_name The value of attribute `human_readable_name`.

@option opts [String] :name The value of attribute `name`.

Calls superclass method OvirtSDK4::Struct::new
# 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

Public Instance Methods

==(other) click to toggle source

Returns `true` if `self` and `other` have the same attributes and values.

Calls superclass method OvirtSDK4::Struct#==
# 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() click to toggle source

Returns the value of the `available_instances` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 9200
def available_instances
  @available_instances
end
available_instances=(value) click to toggle source

Sets the value of the `available_instances` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 9209
def available_instances=(value)
  @available_instances = value
end
description() click to toggle source

Returns the value of the `description` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 9218
def description
  @description
end
description=(value) click to toggle source

Sets the value of the `description` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 9227
def description=(value)
  @description = value
end
hash() click to toggle source

Generates a hash value for this object.

Calls superclass method OvirtSDK4::Struct#hash
# 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() click to toggle source

Returns the value of the `human_readable_name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 9236
def human_readable_name
  @human_readable_name
end
human_readable_name=(value) click to toggle source

Sets the value of the `human_readable_name` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 9245
def human_readable_name=(value)
  @human_readable_name = value
end
name() click to toggle source

Returns the value of the `name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 9254
def name
  @name
end
name=(value) click to toggle source

Sets the value of the `name` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 9263
def name=(value)
  @name = value
end