Sha256: 54bdd5b531133b7a85aecf3225388e735cf0be4dc84f8d1824295271320cdb96

Contents?: true

Size: 398 Bytes

Versions: 3

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true

class Cognito
  class Client
    class Response
      include Anima.new(:status, :headers, :data, :json, :connection)

      def self.build(response, connection)
        new(Builder.call(response).merge(connection: connection))
      end

      class Status
        include Anima.new(:code, :reason)
      end # Status
    end # Response
  end # Client
end # Cognito

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cognito-client-0.5.4 lib/cognito/client/response.rb
cognito-client-0.5.3 lib/cognito/client/response.rb
cognito-client-0.5.2 lib/cognito/client/response.rb