Sha256: 29e1b933bd8ab0a81cb0ef52752158f769e096153479f01fbc085cc8681f33cb
Contents?: true
Size: 475 Bytes
Versions: 3
Compression:
Stored size: 475 Bytes
Contents
require 'digest/md5' require 'marver/configuration' module Marver module API class Credentials class << self def get public_key = Marver.configuration.public_key private_key = Marver.configuration.private_key timestamp = Time.now.to_i.to_s hash = Digest::MD5.hexdigest(timestamp + private_key + public_key) "&ts=#{timestamp}&apikey=#{public_key}&hash=#{hash}" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
marver-0.0.6 | lib/marver/api/credentials.rb |
marver-0.0.5 | lib/marver/api/credentials.rb |
marver-0.0.4 | lib/marver/api/credentials.rb |