Module: Callcredit
- Defined in:
- lib/callcredit.rb,
lib/callcredit/util.rb,
lib/callcredit/client.rb,
lib/callcredit/config.rb,
lib/callcredit/request.rb,
lib/callcredit/version.rb,
lib/callcredit/response.rb,
lib/callcredit/constants.rb,
lib/callcredit/validations.rb,
lib/callcredit/errors/api_error.rb,
lib/callcredit/checks/id_enhanced.rb,
lib/callcredit/checks/bank_enhanced.rb,
lib/callcredit/checks/bank_standard.rb,
lib/callcredit/errors/callcredit_error.rb,
lib/callcredit/middleware/check_response.rb,
lib/callcredit/errors/invalid_request_error.rb,
lib/callcredit/errors/invalid_response_error.rb
Defined Under Namespace
Modules: Checks, Constants, Middleware, Util, Validations
Classes: APIError, CallcreditError, Client, Config, InvalidRequestError, InvalidResponseError, Request, Response
Constant Summary
collapse
- VERSION =
'1.0.0'.freeze
Class Method Summary
collapse
Class Method Details
.bank_enhanced_check(*args) ⇒ Object
37
38
39
|
# File 'lib/callcredit.rb', line 37
def self.bank_enhanced_check(*args)
client.bank_enhanced_check(*args)
end
|
.bank_standard_check(*args) ⇒ Object
33
34
35
|
# File 'lib/callcredit.rb', line 33
def self.bank_standard_check(*args)
client.bank_standard_check(*args)
end
|
.config ⇒ Object
Require configuration before use
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/callcredit.rb', line 46
def self.config
if @config
@config
else
msg = "No config found. Use Callcredit.configure to set username, " +
"password, company and application name. See " +
"https://github.com/gocardless/callcredit-ruby for details."
raise CallcreditError.new(msg)
end
end
|
25
26
27
|
# File 'lib/callcredit.rb', line 25
def self.configure(&block)
@config = Config.new(&block)
end
|
.id_enhanced_check(*args) ⇒ Object
29
30
31
|
# File 'lib/callcredit.rb', line 29
def self.id_enhanced_check(*args)
client.id_enhanced_check(*args)
end
|
41
42
43
|
# File 'lib/callcredit.rb', line 41
def self.perform_check(*args)
client.perform_check(*args)
end
|