Sha256: bd5d4138084cb1a3fa6346e1f222e1dfd4d586ad7c436e6a2bc9944be1c20d96
Contents?: true
Size: 543 Bytes
Versions: 53
Compression:
Stored size: 543 Bytes
Contents
require 'fog/core/collection' require 'fog/cloudsigma/models/vlan' module Fog module Compute class CloudSigma class Vlans < Fog::Collection model Fog::Compute::CloudSigma::VLAN def all resp = service.list_vlans data = resp.body['objects'] load(data) end def get(vlan) resp = service.get_vlan(vlan) data = resp.body new(data) rescue Fog::CloudSigma::Errors::NotFound return nil end end end end end
Version data entries
53 entries across 53 versions & 3 rubygems