Sha256: d8d6b919f067db814567fa5fe026ed52738b113b355f88151c6f9116b1db58ec
Contents?: true
Size: 986 Bytes
Versions: 1
Compression:
Stored size: 986 Bytes
Contents
require 'rubygems' require 'firstgiving/version' require 'firstgiving/base' 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 self.options[:verbose] ||= false self.options[:read_timeout] ||= 30 self.options[:use_ssl] ||= false self.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.0 | lib/firstgiving.rb |