1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/lib/fog/aws/parsers/compute/create_volume.rb
2015-08-06 16:10:37 -07:00

22 lines
619 B
Ruby

module Fog
module Parsers
module Compute
module AWS
class CreateVolume < Fog::Parsers::Base
def end_element(name)
case name
when 'availabilityZone', 'requestId', 'snapshotId', 'status', 'volumeId', 'volumeType', 'kmsKeyId'
@response[name] = value
when 'createTime'
@response[name] = Time.parse(value)
when 'size', 'iops'
@response[name] = value.to_i
when 'encrypted'
@response[name] = (value == 'true')
end
end
end
end
end
end
end