Sha256: 1507776483868789f77eb12138d3e3f809dcfc4a54e8207e8108c1da0f578c18
Contents?: true
Size: 618 Bytes
Versions: 7
Compression:
Stored size: 618 Bytes
Contents
require 'fog/compute/models/ecloud/network' module Fog module Ecloud class Compute class Networks < Fog::Ecloud::Collection undef_method :create model Fog::Ecloud::Compute::Network attribute :href def all check_href!("Vdc") if data = connection.get_vdc(href).body[:AvailableNetworks][:Network] load(data) end end def get(uri) if data = connection.get_network(uri) new(data.body) end rescue Fog::Errors::NotFound nil end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems