lib/moip2/auth/basic.rb in moip2-0.1.4 vs lib/moip2/auth/basic.rb in moip2-1.0.0

- old
+ new

@@ -1,19 +1,16 @@ require "base64" module Moip2 module Auth - class Basic - def initialize(token, secret) - @token, @secret = token, secret + @token = token + @secret = secret end def header %(Basic #{Base64.strict_encode64("#{@token}:#{@secret}")}) end - end - end end