Sha256: 738b9233128b69bc2a45248527160831b99d2bf0a2f920a7a2c5306b194fe313
Contents?: true
Size: 959 Bytes
Versions: 14
Compression:
Stored size: 959 Bytes
Contents
module Vcloud module Walker module Resource class Networks < Resource::Collection def initialize fog_networks fog_networks.each do |org_network| self << Resource::Network.new(org_network) end end end class Network < Entity attr_reader :id, :name, :description, :is_inherited, :gateway, :netmask, :dns1, :dns2, :dns_suffix, :ip_ranges def initialize org_network @id = org_network.id @name = org_network.name @description = org_network.description @is_inherited = org_network.is_inherited @gateway = org_network.gateway @netmask = org_network.netmask @dns1 = org_network.dns1 @dns2 = org_network.dns2 @dns_suffix = org_network.dns_suffix @ip_ranges = org_network.ip_ranges end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems