Sha256: ebe3706da1dba0f56540a83cd9ce64ad1cd4158468b9e28486273768e7723060
Contents?: true
Size: 173 Bytes
Versions: 2
Compression:
Stored size: 173 Bytes
Contents
module RestfulResource class Authorization def self.http_authorization(user, password) 'Basic ' + Base64.encode64("#{user}:#{password}").chomp end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
restful_resource-0.8.2 | lib/restful_resource/authorization.rb |
restful_resource-0.8.1 | lib/restful_resource/authorization.rb |