Sha256: 23072e0ad1eddd7fda7770a3f886901a779ef3983ff5b4604bf4db8d18288a91

Contents?: true

Size: 233 Bytes

Versions: 4

Compression:

Stored size: 233 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

4 entries across 4 versions & 1 rubygems

Version Path
moip2-0.1.4 lib/moip2/auth/oauth.rb
moip2-0.1.3 lib/moip2/auth/oauth.rb
moip2-0.1.1 lib/moip2/auth/oauth.rb
moip2-0.1.0 lib/moip2/auth/oauth.rb