Sha256: 876cbf2f97a1eda7961373686b16c9cb43f4b23cfa5ae3e7fdbe1f0b13649d86

Contents?: true

Size: 603 Bytes

Versions: 6

Compression:

Stored size: 603 Bytes

Contents

require File.expand_path("../cpu_usage_detail", __FILE__)

module Fog
  module Compute
    class Ecloud
      class CpuUsageDetailSummary < Fog::Ecloud::Collection
        identity :href

        model Fog::Compute::Ecloud::CpuUsageDetail

        def all
          data = service.get_cpu_usage_detail_summary(href).body[:CpuUsageDetailSummary][:CpuUsageDetail]
          load(data)
        end

        def get(uri)
          if data = service.get_cpu_usage_detail(uri)
            new(data.body)
          end
        rescue Fog::Errors::NotFound
          nil
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-ecloud-0.1.1/lib/fog/compute/ecloud/models/cpu_usage_detail_summary.rb
fog-ecloud-0.2.0 lib/fog/compute/ecloud/models/cpu_usage_detail_summary.rb
fog-ecloud-0.1.3 lib/fog/compute/ecloud/models/cpu_usage_detail_summary.rb
fog-ecloud-0.1.2 lib/fog/compute/ecloud/models/cpu_usage_detail_summary.rb
fog-ecloud-0.1.1 lib/fog/compute/ecloud/models/cpu_usage_detail_summary.rb
fog-ecloud-0.1.0 lib/fog/compute/ecloud/models/cpu_usage_detail_summary.rb