Class: OvirtSDK4::Mac

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ Mac

Creates a new instance of the OvirtSDK4::Mac class.

Parameters:

  • opts (Hash) (defaults to: {})

    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.

Options Hash (opts):

  • :address (String)

    The value of attribute address.



8679
8680
8681
8682
# File 'lib/ovirtsdk4/types.rb', line 8679

def initialize(opts = {})
  super(opts)
  self.address = opts[:address]
end

Instance Method Details

#==(other) ⇒ Object

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



8687
8688
8689
8690
# File 'lib/ovirtsdk4/types.rb', line 8687

def ==(other)
  super &&
  @address == other.address
end

#addressString

Returns the value of the address attribute.

Returns:

  • (String)


8656
8657
8658
# File 'lib/ovirtsdk4/types.rb', line 8656

def address
  @address
end

#address=(value) ⇒ Object

Sets the value of the address attribute.

Parameters:

  • value (String)


8665
8666
8667
# File 'lib/ovirtsdk4/types.rb', line 8665

def address=(value)
  @address = value
end

#hashObject

Generates a hash value for this object.



8695
8696
8697
8698
# File 'lib/ovirtsdk4/types.rb', line 8695

def hash
  super +
  @address.hash
end