Module: Ultron
- Defined in:
- lib/ultron/auth.rb,
lib/ultron/comics.rb,
lib/ultron/config.rb,
lib/ultron/events.rb,
lib/ultron/series.rb,
lib/ultron/helpers.rb,
lib/ultron/stories.rb,
lib/ultron/version.rb,
lib/ultron/creators.rb,
lib/ultron/entities.rb,
lib/ultron/characters.rb,
lib/ultron/connection.rb
Defined Under Namespace
Classes: Characters, Comics, Config, Connection, Creators, Entities, Events, Series, Stories
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.auth(private_key, public_key) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/ultron/auth.rb', line 2 def self.auth private_key, public_key = Time.new.strftime '%s' digest = Digest::MD5.hexdigest '%s%s%s' % [ , private_key, public_key ] 'ts=%s&apikey=%s&hash=%s' % [ , public_key, digest ] end |