This should be split into multiple lines to be less than 80 characters.

For example:

body = @connect.describe_auto_scaling_groups('AutoScalingGroupNames' => [asg]).body
result = body['DescribeAutoScalingGroupsResult']['AutoScalingGroups'].last