Class: OstKycSdkRuby::Saas::Base
- Inherits:
-
Object
- Object
- OstKycSdkRuby::Saas::Base
- Includes:
- Util::ServicesHelper
- Defined in:
- lib/ost-kyc-sdk-ruby/saas/base.rb
Direct Known Subclasses
Constant Summary collapse
- REGEX_VALUE =
/\A[0-9a-z\.\-]+\z/i
Instance Attribute Summary collapse
-
#http_helper ⇒ Object
readonly
Returns the value of attribute http_helper.
Instance Method Summary collapse
-
#initialize(params) ⇒ Base
constructor
Initialize.
Methods included from Util::ServicesHelper
#error_with_data, #exception_with_data, #perform_and_handle_exceptions, #success, #success_with_data
Constructor Details
#initialize(params) ⇒ Base
Initialize
Arguments:
api_base_url: (String)
api_key: (String)
api_secret: (String)
api_spec: (Boolean)
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/ost-kyc-sdk-ruby/saas/base.rb', line 23 def initialize(params) fail 'missing API Base URL' if params[:api_base_url].nil? fail 'missing API Key' if params[:api_key].nil? fail 'missing API Secret' if params[:api_secret].nil? params[:api_base_url] = sanitize_api_base_url(params[:api_base_url]) @http_helper = OstKycSdkRuby::Util::HTTPHelper.new(params) end |
Instance Attribute Details
#http_helper ⇒ Object (readonly)
Returns the value of attribute http_helper.
11 12 13 |
# File 'lib/ost-kyc-sdk-ruby/saas/base.rb', line 11 def http_helper @http_helper end |