Sha256: 00eb46c53e790023db43ac0d652605d9864b03626515b84268b2b19380ded926
Contents?: true
Size: 818 Bytes
Versions: 1
Compression:
Stored size: 818 Bytes
Contents
require 'rackspace-fog/aws/models/auto_scaling/activity' module Fog module AWS class AutoScaling class Activities < Fog::Collection model Fog::AWS::AutoScaling::Activity def all data = [] next_token = nil loop do result = connection.describe_scaling_activities('NextToken' => next_token).body['DescribeScalingActivitiesResult'] data += result['Activities'] next_token = result['NextToken'] break if next_token.nil? end load(data) end def get(identity) data = connection.describe_scaling_activities('ActivityId' => identity).body['DescribeScalingActivitiesResult']['Activities'].first new(data) unless data.nil? end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rackspace-fog-1.4.2 | lib/rackspace-fog/aws/models/auto_scaling/activities.rb |