Class: OvirtSDK4::DnsResolverConfiguration

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 = {}) ⇒ DnsResolverConfiguration

Creates a new instance of the OvirtSDK4::DnsResolverConfiguration 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):

  • :name_servers (Array<String>, Array<Hash>)

    The values of attribute name_servers.


3292
3293
3294
3295
# File 'lib/ovirtsdk4/types.rb', line 3292

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

Instance Method Details

#==(other) ⇒ Object

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


3300
3301
3302
3303
# File 'lib/ovirtsdk4/types.rb', line 3300

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

#hashObject

Generates a hash value for this object.


3308
3309
3310
3311
# File 'lib/ovirtsdk4/types.rb', line 3308

def hash
  super +
  @name_servers.hash
end

#name_serversArray<String>

Returns the value of the name_servers attribute.

Returns:

  • (Array<String>)

3269
3270
3271
# File 'lib/ovirtsdk4/types.rb', line 3269

def name_servers
  @name_servers
end

#name_servers=(list) ⇒ Object

Sets the value of the name_servers attribute.

Parameters:

  • list (Array<String>)

3278
3279
3280
# File 'lib/ovirtsdk4/types.rb', line 3278

def name_servers=(list)
  @name_servers = list
end