Sha256: 14524c2d549e19d2cfc74482ef9d922423f92cad07a5031f0e7027fa418ab15e
Contents?: true
Size: 264 Bytes
Versions: 4
Compression:
Stored size: 264 Bytes
Contents
require "base64" module Moip2 module Auth class Basic def initialize(token, secret) @token, @secret = token, secret end def header %(Basic #{Base64.strict_encode64("#{@token}:#{@secret}")}) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
moip2-0.1.4 | lib/moip2/auth/basic.rb |
moip2-0.1.3 | lib/moip2/auth/basic.rb |
moip2-0.1.1 | lib/moip2/auth/basic.rb |
moip2-0.1.0 | lib/moip2/auth/basic.rb |