class OvirtSDK4::Bonding
Public Class Methods
new(opts = {})
click to toggle source
Creates a new instance of the {Bonding} 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<Option>, Array<Hash>] :options The values of attribute `options`.
@option opts [Array<HostNic>, Array<Hash>] :slaves The values of attribute `slaves`.
Calls superclass method
OvirtSDK4::Struct.new
# File lib/ovirtsdk4/types.rb, line 1194 def initialize(opts = {}) super(opts) self.options = opts[:options] self.slaves = opts[:slaves] end
Public Instance Methods
options()
click to toggle source
Returns the value of the `options` attribute.
@return [Array<Option>]
# File lib/ovirtsdk4/types.rb, line 1137 def options return @options end
options=(list)
click to toggle source
Sets the value of the `options` attribute.
@param list [Array<Option>]
# File lib/ovirtsdk4/types.rb, line 1145 def options=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Option.new(value) end end end @options = list end
slaves()
click to toggle source
Returns the value of the `slaves` attribute.
@return [Array<HostNic>]
# File lib/ovirtsdk4/types.rb, line 1162 def slaves return @slaves end
slaves=(list)
click to toggle source
Sets the value of the `slaves` attribute.
@param list [Array<HostNic>]
# File lib/ovirtsdk4/types.rb, line 1170 def slaves=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = HostNic.new(value) end end end @slaves = list end