mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
22 lines
619 B
Ruby
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
|