Class: OstKycSdkRuby::Saas::UserKycDetail

Inherits:
Base
  • Object
show all
Defined in:
lib/ost-kyc-sdk-ruby/saas/users_kyc_detail.rb

Constant Summary

Constants inherited from Base

Base::REGEX_VALUE

Instance Attribute Summary

Attributes inherited from Base

#http_helper

Instance Method Summary collapse

Methods included from Util::ServicesHelper

#error_with_data, #exception_with_data, #perform_and_handle_exceptions, #success, #success_with_data

Constructor Details

#initialize(params) ⇒ UserKycDetail

Initialize

Arguments:

api_base_url: (String)
api_key: (String)
api_secret: (String)
api_spec: (Boolean)


15
16
17
18
# File 'lib/ost-kyc-sdk-ruby/saas/users_kyc_detail.rb', line 15

def initialize(params)
  super
  @url_prefix = '/api/v2/users-kyc-detail'
end

Instance Method Details

#get(params) ⇒ Object

Get an existing User Kyc Detail

Returns:

response: (OstKycSdkRuby::Util::Result)


25
26
27
# File 'lib/ost-kyc-sdk-ruby/saas/users_kyc_detail.rb', line 25

def get(params)
  http_helper.send_get_request("#{@url_prefix}/#{get_user_id!(params)}", params)
end