Sha256: cbe074b7188776c02dd43f91e4fda95257b32f64ddcdfb22846ba50660752398
Contents?: true
Size: 579 Bytes
Versions: 1
Compression:
Stored size: 579 Bytes
Contents
module Deadlinez class Api include HTTParty format :xml base_uri 'service.afterthedeadline.com' def self.stats(data) response = get('/stats', :query => { :data => data, :key => Deadlinez.api_key }) response['scores']['metric'] end def self.verify(key = Deadlinez.api_key) response = get('/verify', :query => { :key => key }) response.body.strip == 'valid' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
deadlinez-0.0.1 | lib/deadlinez/api.rb |