Sha256: 9c062ac45a8d7a519784557ce0d006e39d5fa3a62110df42702b6a73712125b4
Contents?: true
Size: 546 Bytes
Versions: 19
Compression:
Stored size: 546 Bytes
Contents
require 'fog/core/collection' require 'fog/brightbox/models/compute/zone' module Fog module Brightbox class Compute class Zones < Fog::Collection model Fog::Brightbox::Compute::Zone def all data = connection.list_zones load(data) end def get(identifier) return nil if identifier.nil? || identifier == "" data = connection.get_zone(identifier) new(data) rescue Excon::Errors::NotFound nil end end end end end
Version data entries
19 entries across 19 versions & 2 rubygems