module Synapsis
Namespacing
Constants
- VERSION
Attributes
client_id[RW]
client_secret[RW]
environment[RW]
Public Class Methods
configure() { |self| ... }
click to toggle source
# File lib/synapsis.rb, line 49 def configure(¶ms) yield(self) end
connection()
click to toggle source
# File lib/synapsis.rb, line 32 def connection @connection ||= Faraday.new(url: synapse_url) do |faraday| faraday.request :multipart # form-encode POST params faraday.request :url_encoded # form-encode POST params faraday.response :logger # log requests to STDOUT faraday.adapter Faraday.default_adapter # make requests with Net::HTTP end end
synapse_url()
click to toggle source
# File lib/synapsis.rb, line 41 def synapse_url if environment == 'production' 'https://synapsepay.com/' else 'https://sandbox.synapsepay.com/' end end