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

#href, #href=

Constructor Details

- (Mac) initialize(opts = {})

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.



6175
6176
6177
6178
# File 'lib/ovirtsdk4/types.rb', line 6175

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

Instance Method Details

- (String) address

Returns the value of the address attribute.

Returns:

  • (String)


6152
6153
6154
# File 'lib/ovirtsdk4/types.rb', line 6152

def address
  return @address
end

- (Object) address=(value)

Sets the value of the address attribute.

Parameters:

  • value (String)


6161
6162
6163
# File 'lib/ovirtsdk4/types.rb', line 6161

def address=(value)
  @address = value
end