Sha256: 9c9cc7a92edc2f010d3cbc04531dbe3485a08b579efec84ec9d2c5cd601a5938
Contents?: true
Size: 545 Bytes
Versions: 23
Compression:
Stored size: 545 Bytes
Contents
require "fog/brightbox/models/compute/account" module Fog module Brightbox class Compute class Accounts < Fog::Collection model Fog::Brightbox::Compute::Account def all(options = {}) data = service.list_accounts(options) load(data) end def get(identifier) return nil if identifier.nil? || identifier == "" data = service.get_account(identifier) new(data) rescue Excon::Errors::NotFound nil end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems