Sha256: 8cfcdbdb37597729e2c632df0b4705da55a17da184da8427eb5aa48d0cca2b9c
Contents?: true
Size: 964 Bytes
Versions: 1
Compression:
Stored size: 964 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 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.1 | lib/firstgiving.rb |