Sha256: 66c4eaaab0bceb798ab73b8628b70e380068fe701a8a5efc015a2ed604de39d4

Contents?: true

Size: 413 Bytes

Versions: 3

Compression:

Stored size: 413 Bytes

Contents

require 'fog/core/collection'
require 'fog/compute/models/storm_on_demand/stat'

module Fog
  module StormOnDemand
    class Compute

      class Stats < Fog::Collection
        model Fog::StormOnDemand::Compute::Stat

        def get(options)
          data = connection.get_stats(options).body
          load(data)
        rescue Excon::Errors::Forbidden
          nil
        end

      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fog-0.8.2 lib/fog/compute/models/storm_on_demand/stats.rb
fog-0.8.1 lib/fog/compute/models/storm_on_demand/stats.rb
fog-0.8.0 lib/fog/compute/models/storm_on_demand/stats.rb