Sha256: 22db8c5f5ff701e7548b8c5bd06b7445d92daae7c408417a56026821f79fed7e

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.blank?
        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.6 lib/restfulness/requests/authorization.rb
restfulness-0.3.5 lib/restfulness/requests/authorization.rb
restfulness-0.3.4 lib/restfulness/requests/authorization.rb