module FirstGiving::Base
Constants
- DONATION_PRODUCTION_ENDPOINT
- DONATION_SANDBOX_ENDPOINT
- SEARCH_ENDPOINT
Public Instance Methods
headers_json()
click to toggle source
# File lib/firstgiving/base.rb, line 9 def headers_json { 'User-Agent' => 'FirstGiving Ruby SDK', 'Content-Type' => 'application/json' } end
headers_security()
click to toggle source
# File lib/firstgiving/base.rb, line 16 def headers_security { 'JG_APPLICATIONKEY' => "#{FirstGiving.configuration.application_key}", 'JG_SECURITYTOKEN' => "#{FirstGiving.configuration.security_token}" } end
logging(msg)
click to toggle source
# File lib/firstgiving/base.rb, line 38 def logging(msg) puts "[FG-LOG] #{msg}" if FirstGiving.configuration.options[:verbose] end