Sha256: 9e333b9761fb9955f5254e6d53e5e3bd33815309856c1170ce15856ae88f1790

Contents?: true

Size: 679 Bytes

Versions: 62

Compression:

Stored size: 679 Bytes

Contents

module Fog
  module Parsers
    module CDN
      module AWS
        class GetInvalidation < Fog::Parsers::Base
          def reset
            @response = { 'InvalidationBatch' => { 'Path' => [] } }
          end

          def start_element(name, attrs = [])
            super
          end

          def end_element(name)
            case name
            when 'Path'
              @response['InvalidationBatch'][name] << value
            when 'Id', 'Status', 'CreateTime'
              @response[name] = value
            when 'CallerReference'
              @response['InvalidationBatch'][name] = value
            end
          end
        end
      end
    end
  end
end

Version data entries

62 entries across 60 versions & 6 rubygems

Version Path
ns-fog-1.22.2 lib/fog/aws/parsers/cdn/get_invalidation.rb
fog-1.22.1 lib/fog/aws/parsers/cdn/get_invalidation.rb