2012-09-20 20:25:27 +02:00
|
|
|
module Fog
|
|
|
|
module Parsers
|
|
|
|
module CDN
|
|
|
|
module AWS
|
|
|
|
|
|
|
|
class GetInvalidation < Fog::Parsers::Base
|
|
|
|
|
|
|
|
def reset
|
2012-09-23 16:28:40 +02:00
|
|
|
@response = { 'InvalidationBatch' => { 'Path' => [] } }
|
2012-09-20 20:25:27 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
def start_element(name, attrs = [])
|
|
|
|
super
|
|
|
|
end
|
|
|
|
|
|
|
|
def end_element(name)
|
|
|
|
case name
|
|
|
|
when 'Path'
|
2012-09-23 16:28:40 +02:00
|
|
|
@response['InvalidationBatch'][name] << value
|
2012-09-20 20:25:27 +02:00
|
|
|
when 'Id', 'Status', 'CreateTime'
|
2012-09-23 16:28:40 +02:00
|
|
|
@response[name] = value
|
|
|
|
when 'CallerReference'
|
|
|
|
@response['InvalidationBatch'][name] = value
|
2012-09-20 20:25:27 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|