Sha256: 7395969f71bade8097882d943ed2ebc51f02d67b3d5806f5f82e042b33b54a80

Contents?: true

Size: 601 Bytes

Versions: 62

Compression:

Stored size: 601 Bytes

Contents

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

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

Version data entries

62 entries across 60 versions & 6 rubygems

Version Path
fog-aws-3.2.0 lib/fog/aws/parsers/cdn/post_invalidation.rb
fog-aws-3.1.0 lib/fog/aws/parsers/cdn/post_invalidation.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-aws-2.0.1/lib/fog/aws/parsers/cdn/post_invalidation.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-aws-2.0.1/lib/fog/aws/parsers/cdn/post_invalidation.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-aws-2.0.1/lib/fog/aws/parsers/cdn/post_invalidation.rb
fog-aws-3.0.0 lib/fog/aws/parsers/cdn/post_invalidation.rb
fog-aws-2.0.1 lib/fog/aws/parsers/cdn/post_invalidation.rb
fog-aws-2.0.0 lib/fog/aws/parsers/cdn/post_invalidation.rb
fog-aws-1.4.1 lib/fog/aws/parsers/cdn/post_invalidation.rb
fog-aws-1.4.0 lib/fog/aws/parsers/cdn/post_invalidation.rb
fog-aws-1.3.0 lib/fog/aws/parsers/cdn/post_invalidation.rb
fog-aws-1.2.1 lib/fog/aws/parsers/cdn/post_invalidation.rb
fog-aws-1.2.0 lib/fog/aws/parsers/cdn/post_invalidation.rb
fog-aws-1.1.0 lib/fog/aws/parsers/cdn/post_invalidation.rb
fog-aws-1.0.0 lib/fog/aws/parsers/cdn/post_invalidation.rb
fog-aws-0.13.0 lib/fog/aws/parsers/cdn/post_invalidation.rb
fog-aws-0.12.0 lib/fog/aws/parsers/cdn/post_invalidation.rb
fog-aws-0.11.0 lib/fog/aws/parsers/cdn/post_invalidation.rb
fog-aws-0.10.0 lib/fog/aws/parsers/cdn/post_invalidation.rb
fog-aws-0.9.4 lib/fog/aws/parsers/cdn/post_invalidation.rb