Sha256: 520f257ed31f6a6a1126b17a6a9498737ac1a6426af08b7e0b917b0b863cf5d1
Contents?: true
Size: 546 Bytes
Versions: 38
Compression:
Stored size: 546 Bytes
Contents
require 'fog/core/collection' require 'fog/brightbox/models/compute/zone' module Fog module Compute class Brightbox class Zones < Fog::Collection model Fog::Compute::Brightbox::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
38 entries across 38 versions & 13 rubygems