Sha256: 2e8e0afba0d0c0c748b16931339849872bde69a0679face86fb65452478cde10
Contents?: true
Size: 649 Bytes
Versions: 1
Compression:
Stored size: 649 Bytes
Contents
require "urkel/version" require 'net/http' require 'urkel/configuration' require 'urkel/connection' module Urkel class InvalidConfigurationError < StandardError; end class InvalidAPITokenError < StandardError; end def self.configure configuration = Configuration.new yield configuration @connection = Connection.new(configuration) end def self.oops(error) raise InvalidConfigurationError.new unless @connection @connection.publish(error) end def self.oops!(error) raise InvalidConfigurationError.new unless @connection @connection.publish!(error) end def self.reset @connection = nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
urkel-0.0.2 | lib/urkel.rb |