class Fog::AWS::AutoScaling::Instances
Public Instance Methods
all()
click to toggle source
# File lib/fog/aws/models/auto_scaling/instances.rb, line 9 def all data = [] next_token = nil loop do result = service.describe_auto_scaling_instances('NextToken' => next_token).body['DescribeAutoScalingInstancesResult'] data += result['AutoScalingInstances'] next_token = result['NextToken'] break if next_token.nil? end load(data) end
get(identity)
click to toggle source
# File lib/fog/aws/models/auto_scaling/instances.rb, line 21 def get(identity) data = service.describe_auto_scaling_instances('InstanceIds' => identity).body['DescribeAutoScalingInstancesResult']['AutoScalingInstances'].first new(data) unless data.nil? end