Class: OvirtSDK4::Dns
- Inherits:
-
Struct
- Object
- Struct
- OvirtSDK4::Dns
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (Dns) initialize(opts = {})
constructor
Creates a new instance of the Dns class.
-
- (Array<Host>) search_domains
Returns the value of the
search_domains
attribute. -
- (Object) search_domains=(list)
Sets the value of the
search_domains
attribute. -
- (Array<Host>) servers
Returns the value of the
servers
attribute. -
- (Object) servers=(list)
Sets the value of the
servers
attribute.
Methods included from Type
Constructor Details
- (Dns) initialize(opts = {})
Creates a new instance of the OvirtSDK4::Dns class.
2514 2515 2516 2517 2518 |
# File 'lib/ovirtsdk4/types.rb', line 2514 def initialize(opts = {}) super(opts) self.search_domains = opts[:search_domains] self.servers = opts[:servers] end |
Instance Method Details
- (Array<Host>) search_domains
Returns the value of the search_domains
attribute.
2457 2458 2459 |
# File 'lib/ovirtsdk4/types.rb', line 2457 def search_domains return @search_domains end |
- (Object) search_domains=(list)
Sets the value of the search_domains
attribute.
2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 |
# File 'lib/ovirtsdk4/types.rb', line 2465 def search_domains=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Host.new(value) end end end @search_domains = list end |
- (Array<Host>) servers
Returns the value of the servers
attribute.
2482 2483 2484 |
# File 'lib/ovirtsdk4/types.rb', line 2482 def servers return @servers end |
- (Object) servers=(list)
Sets the value of the servers
attribute.
2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 |
# File 'lib/ovirtsdk4/types.rb', line 2490 def servers=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Host.new(value) end end end @servers = list end |