module Afterpay
rubocop:disable Metrics/ClassLength
Constants
- VERSION
Attributes
config[RW]
Public Class Methods
client()
click to toggle source
Helper function for Afterpay::Client
Use Afterpay.client
to send receive request
# File lib/afterpay.rb, line 27 def self.client Client.new end
configure() { |config| ... }
click to toggle source
Configure block to setup configuration
Afterpay.configure do |conf| conf.app_id = <app_id> conf.secret = <secret> end
# File lib/afterpay.rb, line 38 def self.configure self.config ||= Config.new yield(config) if block_given? config.fetch_remote_config unless config.skip_remote_config config end
env()
click to toggle source
# File lib/afterpay.rb, line 45 def self.env config.env end