Class: Fog::Compute::ProfitBricks::ContractResources

Inherits:
Fog::Collection
  • Object
show all
Includes:
Helpers::ProfitBricks::DataHelper
Defined in:
lib/fog/profitbricks/models/compute/contract_resources.rb

Instance Method Summary collapse

Methods included from Helpers::ProfitBricks::DataHelper

#flatten

Instance Method Details

#allObject



11
12
13
14
15
# File 'lib/fog/profitbricks/models/compute/contract_resources.rb', line 11

def all
  result = service.get_all_contract_resources

  load([flatten(result.body)])
end