Sha256: 6f7ece760d5280fb3c499fb508e02fba0c3c0ef276f38d52134653da4f326859
Contents?: true
Size: 452 Bytes
Versions: 64
Compression:
Stored size: 452 Bytes
Contents
require 'fog/core/collection' require 'fog/digitalocean/models/compute/region' module Fog module Compute class DigitalOcean class Regions < Fog::Collection model Fog::Compute::DigitalOcean::Region def all load service.list_regions.body['regions'] end def get(id) all.find { |f| f.id == id } rescue Fog::Errors::NotFound nil end end end end end
Version data entries
64 entries across 64 versions & 5 rubygems