class Moip2::Auth::OAuth

Public Class Methods

new(oauth) click to toggle source
# File lib/moip2/auth/oauth.rb, line 4
def initialize(oauth)
  @oauth = oauth
end

Public Instance Methods

header() click to toggle source
# File lib/moip2/auth/oauth.rb, line 8
def header
  return @oauth if @oauth.start_with? "OAuth"

  %(OAuth #{@oauth})
end