lib/fog/aws/models/auto_scaling/activities.rb in fog-1.8.0 vs lib/fog/aws/models/auto_scaling/activities.rb in fog-1.9.0

- old
+ new

@@ -9,19 +9,19 @@ def all data = [] next_token = nil loop do - result = connection.describe_scaling_activities('NextToken' => next_token).body['DescribeScalingActivitiesResult'] + result = service.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 + data = service.describe_scaling_activities('ActivityId' => identity).body['DescribeScalingActivitiesResult']['Activities'].first new(data) unless data.nil? end end end