class OvirtSDK4::DnsResolverConfiguration
Public Class Methods
new(opts = {})
click to toggle source
Creates a new instance of the {DnsResolverConfiguration} 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 [Array<String>, Array<Hash>] :name_servers The values of attribute `name_servers`.
Calls superclass method
OvirtSDK4::Struct::new
# File lib/ovirtsdk4/types.rb, line 3333 def initialize(opts = {}) super(opts) self.name_servers = opts[:name_servers] 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 3341 def ==(other) super && @name_servers == other.name_servers 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 3349 def hash super + @name_servers.hash end
name_servers()
click to toggle source
Returns the value of the `name_servers` attribute.
@return [Array<String>]
# File lib/ovirtsdk4/types.rb, line 3310 def name_servers @name_servers end
name_servers=(list)
click to toggle source
Sets the value of the `name_servers` attribute.
@param list [Array<String>]
# File lib/ovirtsdk4/types.rb, line 3319 def name_servers=(list) @name_servers = list end