Class: OvirtSDK4::DnsResolverConfiguration
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ DnsResolverConfiguration
constructor
Creates a new instance of the DnsResolverConfiguration class.
-
#name_servers ⇒ Array<String>
Returns the value of the
name_servers
attribute. -
#name_servers=(list) ⇒ Object
Sets the value of the
name_servers
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ DnsResolverConfiguration
Creates a new instance of the OvirtSDK4::DnsResolverConfiguration class.
3260 3261 3262 3263 |
# File 'lib/ovirtsdk4/types.rb', line 3260 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.
3268 3269 3270 3271 |
# File 'lib/ovirtsdk4/types.rb', line 3268 def ==(other) super && @name_servers == other.name_servers end |
#hash ⇒ Object
Generates a hash value for this object.
3276 3277 3278 3279 |
# File 'lib/ovirtsdk4/types.rb', line 3276 def hash super + @name_servers.hash end |
#name_servers ⇒ Array<String>
Returns the value of the name_servers
attribute.
3237 3238 3239 |
# File 'lib/ovirtsdk4/types.rb', line 3237 def name_servers @name_servers end |
#name_servers=(list) ⇒ Object
Sets the value of the name_servers
attribute.
3246 3247 3248 |
# File 'lib/ovirtsdk4/types.rb', line 3246 def name_servers=(list) @name_servers = list end |