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