# File lib/rudy/aws/ec2/image.rb, line 118 118: def Images.from_hash(h) 119: img = Rudy::AWS::EC2::Image.new 120: img.owner = h['imageOwnerId'] 121: img.aki = h['kernelId'] 122: img.ari = h['ramdiskId'] 123: img.state = h['imageState'] 124: img.awsid = h['imageId'] 125: img.arch = h['architecture'] 126: img.visibility = h['isPublic'] == 'true' ? 'public' : 'private' 127: img.location = h['imageLocation'] 128: img.kind = h['imageType'] 129: img 130: end