Sha256: b81ce3c8a3e009c90195bfc973d0937ab485ad3db28c320b10fc68979cb34f5e

Contents?: true

Size: 766 Bytes

Versions: 33

Compression:

Stored size: 766 Bytes

Contents

module Aws

    # This class is a special array to hold a bit of extra information about a response like:
    # <ResponseMetadata>
    #    <RequestId>4f1fae46-bf3d-11de-a88b-7b5b3d23b3a7</RequestId>
    #  </ResponseMetadata>
    #
    # Which can be accessed directly from the array using array.response_metadata
    #
    class AwsResponseArray < Array

        attr_accessor :response_metadata

        def initialize(response_metadata)
            @response_metadata = response_metadata
        end

    end

    # Used when pulling out a single response object
    class AwsResponseObjectHash < Hash

        attr_accessor :response_metadata

        def initialize(response_metadata)
            @response_metadata = response_metadata
        end

    end
end

Version data entries

33 entries across 33 versions & 4 rubygems

Version Path
aws-2.3.34 lib/awsbase/aws_response_array.rb
aws-2.3.32 lib/awsbase/aws_response_array.rb
aws-2.3.31 lib/awsbase/aws_response_array.rb
aws-2.3.30 lib/awsbase/aws_response_array.rb
aws-2.3.29 lib/awsbase/aws_response_array.rb
hackerdude-aws-2.3.26 lib/awsbase/aws_response_array.rb
aws-2.3.28 lib/awsbase/aws_response_array.rb
aws-2.3.27 lib/awsbase/aws_response_array.rb
steamcannon-aws-2.3.26.2 lib/awsbase/aws_response_array.rb
steamcannon-aws-2.3.26.1 lib/awsbase/aws_response_array.rb
hackerdude-aws-2.3.25 lib/awsbase/aws_response_array.rb
aws-2.3.26 lib/awsbase/aws_response_array.rb
aws-2.3.25 lib/awsbase/aws_response_array.rb
aws-2.3.24 lib/awsbase/aws_response_array.rb
aws-2.3.22 lib/awsbase/aws_response_array.rb
aws-2.3.21 lib/awsbase/aws_response_array.rb
aws-2.3.20 lib/awsbase/aws_response_array.rb
cmeiklejohn-aws-2.3.19 lib/awsbase/aws_response_array.rb
cmeiklejohn-aws-2.3.13 lib/awsbase/aws_response_array.rb
cmeiklejohn-aws-2.3.12 lib/awsbase/aws_response_array.rb