Sha256: 937232ebcb650689a1dc3ed39caaf5681e1b447a45f60ded29fbf5c206e02802
Contents?: true
Size: 995 Bytes
Versions: 1
Compression:
Stored size: 995 Bytes
Contents
require 'rubygems' require 'firstgiving/version' require 'firstgiving/base' require 'firstgiving/response' require 'firstgiving/donation' require 'firstgiving/lookup' require 'firstgiving/search' # Donation API # Transaction API # Search API module FirstGiving class Configuration attr_accessor :application_key, :security_token, :options def initialize self.application_key = nil self.security_token = nil self.options = {} set_defaults end def set_defaults options[:verbose] ||= false options[:read_timeout] ||= 30 options[:use_ssl] ||= false options[:use_staging] ||= true end end def self.configuration @configuration ||= Configuration.new end def self.configure yield(configuration) if block_given? end def self.lookup @lookup ||= Lookup.new end def self.search @search ||= Search.new end def self.donation @donation ||= Donation.new end end FG = FirstGiving
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
firstgiving-1.0.2 | lib/firstgiving.rb |