Returns a Network. Uses the cache if available.
Parameters:
the vcenter ref
Returns:
Network
76 77 78 79 80 81 82 83
# File 'lib/network.rb', line 76 def get(ref) if !@items[ref.to_sym] rbvmomi_net = RbVmomi::VIM::Network.new(@item._connection, ref) @items[ref.to_sym] = Network.new(rbvmomi_net) end @items[ref.to_sym] end