Class: OvirtSDK4::Bonding
- Inherits:
-
Struct
- Object
- Struct
- OvirtSDK4::Bonding
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (Bonding) initialize(opts = {})
constructor
Creates a new instance of the Bonding class.
-
- (Array<Option>) options
Returns the value of the
options
attribute. -
- (Object) options=(list)
Sets the value of the
options
attribute. -
- (Array<HostNic>) slaves
Returns the value of the
slaves
attribute. -
- (Object) slaves=(list)
Sets the value of the
slaves
attribute.
Methods included from Type
Constructor Details
- (Bonding) initialize(opts = {})
Creates a new instance of the OvirtSDK4::Bonding class.
1194 1195 1196 1197 1198 |
# File 'lib/ovirtsdk4/types.rb', line 1194 def initialize(opts = {}) super(opts) self. = opts[:options] self.slaves = opts[:slaves] end |
Instance Method Details
- (Array<Option>) options
Returns the value of the options
attribute.
1137 1138 1139 |
# File 'lib/ovirtsdk4/types.rb', line 1137 def return @options end |
- (Object) options=(list)
Sets the value of the options
attribute.
1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 |
# File 'lib/ovirtsdk4/types.rb', line 1145 def (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 |
- (Array<HostNic>) slaves
Returns the value of the slaves
attribute.
1162 1163 1164 |
# File 'lib/ovirtsdk4/types.rb', line 1162 def slaves return @slaves end |
- (Object) slaves=(list)
Sets the value of the slaves
attribute.
1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 |
# 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 |