Sha256: ccc219c786175ec7e7a0b4a9e681b24c3c42ea1c4cfb01985788badc64f2815c
Contents?: true
Size: 384 Bytes
Versions: 7
Compression:
Stored size: 384 Bytes
Contents
module Woopy DEFAULT_SITE_BASE = "https://api.woople.com/services/v1/" class Client def initialize(options) @token = options[:token] Resource.headers['X-WoopleToken'] = @token Resource.site = options[:site] || DEFAULT_SITE_BASE end def verify Resource.connection.get(Resource.prefix + 'verify', Resource.headers).success? end end end
Version data entries
7 entries across 7 versions & 1 rubygems