Sha256: 49cd64657b07eaed1ebc2c2aa8c2eaaac62b0416dae581f025aba148fb6af15c

Contents?: true

Size: 604 Bytes

Versions: 190

Compression:

Stored size: 604 Bytes

Contents

# frozen_string_literal: true

module Aws
  module Rest
    module Response
      class StatusCode

        # @param [Seahorse::Model::Shapes::ShapeRef] rules
        def initialize(rules)
          @rules = rules
        end

        # @param [Seahorse::Client::Http::Response] http_resp
        # @param [Hash, Struct] data
        def apply(http_resp, data)
          @rules.shape.members.each do |member_name, member_ref|
            if member_ref.location == 'statusCode'
              data[member_name] = http_resp.status_code
            end
          end
        end

      end
    end
  end
end

Version data entries

190 entries across 190 versions & 1 rubygems

Version Path
aws-sdk-core-3.214.0 lib/aws-sdk-core/rest/response/status_code.rb
aws-sdk-core-3.213.0 lib/aws-sdk-core/rest/response/status_code.rb
aws-sdk-core-3.212.0 lib/aws-sdk-core/rest/response/status_code.rb
aws-sdk-core-3.211.0 lib/aws-sdk-core/rest/response/status_code.rb
aws-sdk-core-3.210.0 lib/aws-sdk-core/rest/response/status_code.rb
aws-sdk-core-3.209.1 lib/aws-sdk-core/rest/response/status_code.rb
aws-sdk-core-3.209.0 lib/aws-sdk-core/rest/response/status_code.rb
aws-sdk-core-3.208.0 lib/aws-sdk-core/rest/response/status_code.rb
aws-sdk-core-3.207.0 lib/aws-sdk-core/rest/response/status_code.rb
aws-sdk-core-3.206.0 lib/aws-sdk-core/rest/response/status_code.rb
aws-sdk-core-3.205.0 lib/aws-sdk-core/rest/response/status_code.rb
aws-sdk-core-3.204.0 lib/aws-sdk-core/rest/response/status_code.rb
aws-sdk-core-3.203.0 lib/aws-sdk-core/rest/response/status_code.rb
aws-sdk-core-3.202.2 lib/aws-sdk-core/rest/response/status_code.rb
aws-sdk-core-3.202.1 lib/aws-sdk-core/rest/response/status_code.rb
aws-sdk-core-3.202.0 lib/aws-sdk-core/rest/response/status_code.rb
aws-sdk-core-3.201.5 lib/aws-sdk-core/rest/response/status_code.rb
aws-sdk-core-3.201.4 lib/aws-sdk-core/rest/response/status_code.rb
aws-sdk-core-3.201.3 lib/aws-sdk-core/rest/response/status_code.rb
aws-sdk-core-3.201.2 lib/aws-sdk-core/rest/response/status_code.rb