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