Method: OvirtSDK4::OpenStackNetworkProvider#subnets=
- Defined in:
- lib/ovirtsdk4/types.rb
#subnets=(list) ⇒ Object
Sets the value of the subnets attribute.
57346 57347 57348 57349 57350 57351 57352 57353 57354 57355 57356 |
# File 'lib/ovirtsdk4/types.rb', line 57346 def subnets=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = OpenStackSubnet.new(value) end end end @subnets = list end |