Sha256: fb75d6ef8c8f47f742cd54987fbfdba6e589af66fbbd5ee1d0a4c9bae03fe1ed

Contents?: true

Size: 230 Bytes

Versions: 5

Compression:

Stored size: 230 Bytes

Contents

module Moip2
  module Auth
    class OAuth
      def initialize(oauth)
        @oauth = oauth
      end

      def header
        return @oauth if @oauth.start_with? "OAuth"

        %(OAuth #{@oauth})
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
moip2-1.3.1 lib/moip2/auth/oauth.rb
moip2-1.2.1 lib/moip2/auth/oauth.rb
moip2-1.2.0 lib/moip2/auth/oauth.rb
moip2-1.1.0 lib/moip2/auth/oauth.rb
moip2-1.0.0 lib/moip2/auth/oauth.rb