Module: Fog::Helpers::ProfitBricks::DataHelper
- Included in:
- Compute::ProfitBricks::ContractResource, Compute::ProfitBricks::ContractResources, Compute::ProfitBricks::Datacenter, Compute::ProfitBricks::Datacenters, Compute::ProfitBricks::FirewallRule, Compute::ProfitBricks::FirewallRules, Compute::ProfitBricks::Group, Compute::ProfitBricks::Groups, Compute::ProfitBricks::Image, Compute::ProfitBricks::Images, Compute::ProfitBricks::IpBlock, Compute::ProfitBricks::IpBlocks, Compute::ProfitBricks::Lan, Compute::ProfitBricks::Lans, Compute::ProfitBricks::LoadBalancer, Compute::ProfitBricks::LoadBalancers, Compute::ProfitBricks::Locations, Compute::ProfitBricks::Nic, Compute::ProfitBricks::Nics, Compute::ProfitBricks::Requests, Compute::ProfitBricks::Resource, Compute::ProfitBricks::Resources, Compute::ProfitBricks::Server, Compute::ProfitBricks::Servers, Compute::ProfitBricks::Share, Compute::ProfitBricks::Shares, Compute::ProfitBricks::Snapshot, Compute::ProfitBricks::Snapshots, Compute::ProfitBricks::User, Compute::ProfitBricks::Users, Compute::ProfitBricks::Volume, Compute::ProfitBricks::Volumes
- Defined in:
- lib/fog/profitbricks/helpers/compute/data_helper.rb
Instance Method Summary collapse
Instance Method Details
#flatten(response_json) ⇒ Object
5 6 7 8 |
# File 'lib/fog/profitbricks/helpers/compute/data_helper.rb', line 5 def flatten(response_json) %w(properties metadata entities resourceLimits).each { |k| response_json.merge!(response_json.delete(k)) if response_json.key?(k) } response_json end |