# File lib/rudy/aws/ec2/volume.rb, line 144 144: def list_by_instance(instid, &each_vol) 145: instid = instid.awsid if instid.is_a? Rudy::AWS::EC2::Instance 146: volumes = list(:attached, &each_vol) 147: volumes &&= volumes.select { |v| v.instid == instid } 148: volumes 149: end