Sha256: 618038c4cd516ba4d3d5b92ae26236a5f8d9ad4f8c11ec9cf9ccaea6c23382be
Contents?: true
Size: 651 Bytes
Versions: 9
Compression:
Stored size: 651 Bytes
Contents
require 'sailthru/version' require 'sailthru/client' module Sailthru class ClientError < StandardError end class UnavailableError < StandardError end # Provides a global place to configure the credentials for an application. # For instance, in your Rails app, create +config/initializers/sailthru.rb+ # and place this line in it: # # Sailthru.credentials('apikey', 'secret') # # Now you can create a client instance easily via Sailthru::Client.new # def self.credentials(api_key, secret) @api_key = api_key @secret = secret end def self.api_key @api_key end def self.secret @secret end end
Version data entries
9 entries across 9 versions & 1 rubygems