Module: Xfers

Defined in:
lib/xfers.rb,
lib/xfers/card.rb,
lib/xfers/user.rb,
lib/xfers/charge.rb,
lib/xfers/intent.rb,
lib/xfers/payout.rb,
lib/xfers/connect.rb,
lib/xfers/version.rb,
lib/xfers/bank_account.rb,
lib/xfers/api_operations.rb,
lib/xfers/errors/xfers_error.rb,
lib/xfers/errors/authentication_error.rb,
lib/xfers/errors/internal_server_error.rb,
lib/xfers/errors/invalid_request_error.rb

Defined Under Namespace

Modules: APIOperations, BankAccount, Card, Charge, Connect, Intent, Payout, User Classes: AuthenticationError, InternalServerError, InvalidRequestError, XfersError

Constant Summary collapse

SG_SANDBOX_BASE =
'https://sandbox.xfers.io/api/v3'
SG_PRODUCTION_BASE =
'https://www.xfers.io/api/v3'
ID_SANDBOX_BASE =
'https://sandbox-id.xfers.com/api/v3'
ID_PRODUCTION_BASE =
'https://id.xfers.com/api/v3'
VERSION =
'1.2.0'
@@api_key =
''
@@api_base =
''

Class Method Summary collapse

Class Method Details

.get_api_baseObject



60
61
62
# File 'lib/xfers.rb', line 60

def self.get_api_base
  @@api_base
end

.get_api_keyObject



56
57
58
# File 'lib/xfers.rb', line 56

def self.get_api_key
  @@api_key
end

.set_api_key(api_key) ⇒ Object



52
53
54
# File 'lib/xfers.rb', line 52

def self.set_api_key(api_key)
  @@api_key = api_key
end

.set_id_productionObject



48
49
50
# File 'lib/xfers.rb', line 48

def self.set_id_production
  @@api_base = ID_PRODUCTION_BASE
end

.set_id_sandboxObject



44
45
46
# File 'lib/xfers.rb', line 44

def self.set_id_sandbox
  @@api_base = ID_SANDBOX_BASE
end

.set_sg_productionObject



40
41
42
# File 'lib/xfers.rb', line 40

def self.set_sg_production
  @@api_base = SG_PRODUCTION_BASE
end

.set_sg_sandboxObject



36
37
38
# File 'lib/xfers.rb', line 36

def self.set_sg_sandbox
  @@api_base = SG_SANDBOX_BASE
end