Sha256: b78c0ef28a4c0eab3c79c6df991a7d2b6567d121974f9d84bb60ee320381918c
Contents?: true
Size: 670 Bytes
Versions: 3
Compression:
Stored size: 670 Bytes
Contents
require 'hashie' require 'httparty' module Hoptoad extend self attr_accessor :account, :auth_token, :secure class HoptoadError < StandardError; end def configure(options={}) @account = options[:account] if options.has_key?(:account) @auth_token = options[:auth_token] if options.has_key?(:auth_token) @secure = options[:secure] if options.has_key?(:secure) end def account_path "#{protocol}://#{@account}.hoptoadapp.com" end def protocol secure ? "https" : "http" end end require 'hoptoad-api/core_extensions' require 'hoptoad-api/client' require 'hoptoad-api/error' require 'hoptoad-api/notice' require 'hoptoad-api/project'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hoptoad-api-2.5.0 | lib/hoptoad-api.rb |
hoptoad-api-2.4.0 | lib/hoptoad-api.rb |
hoptoad-api-2.3.0 | lib/hoptoad-api.rb |