Sha256: 0a4ce0253d19bd6eec7dc0b33a7da5ca329ba6d2f9da58d3e6d890fbf4379aef
Contents?: true
Size: 556 Bytes
Versions: 78
Compression:
Stored size: 556 Bytes
Contents
require 'fog/core/collection' require 'fog/brightbox/models/compute/account' module Fog module Compute class Brightbox class Accounts < Fog::Collection model Fog::Compute::Brightbox::Account def all data = service.list_accounts 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
78 entries across 78 versions & 7 rubygems