Sha256: ea95e7e4e867459fc8c4bfa6c30e6aaab390bca8845f3ff8a9c76de2dcd428c8

Contents?: true

Size: 372 Bytes

Versions: 3

Compression:

Stored size: 372 Bytes

Contents

module Restfulness
  module Requests

    module Authorization

      def authorization
        @authorization ||= begin
          payload = authorization_header_payload
          AuthorizationHeader.new(payload) unless payload.nil?
        end
      end

      private

      def authorization_header_payload
        headers[:authorization]
      end

    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
restfulness-0.3.3 lib/restfulness/requests/authorization.rb
restfulness-0.3.2 lib/restfulness/requests/authorization.rb
restfulness-0.3.1 lib/restfulness/requests/authorization.rb