Class: OSTSdk::Saas::RecoveryOwners
- Defined in:
- lib/ost-sdk-ruby/saas/recovery_owners.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#get(params = {}) ⇒ Object
Get Recovery Owner.
-
#initialize(params) ⇒ RecoveryOwners
constructor
Initialize.
Methods included from Util::ServicesHelper
#current_time, #current_timestamp, #perform_and_handle_exceptions
Constructor Details
#initialize(params) ⇒ RecoveryOwners
Initialize
Arguments:
api_base_url: (String)
api_key: (String)
api_secret: (String)
api_spec: (Boolean)
config: (Hash)
16 17 18 19 20 |
# File 'lib/ost-sdk-ruby/saas/recovery_owners.rb', line 16 def initialize(params) super @url_prefix = '/users' @url_suffix = '/recovery-owners' end |
Instance Method Details
#get(params = {}) ⇒ Object
Get Recovery Owner
Returns:
response: (Hash)
27 28 29 |
# File 'lib/ost-sdk-ruby/saas/recovery_owners.rb', line 27 def get(params = {}) http_helper.send_get_request("#{@url_prefix}/#{get_user_id!(params)}#{@url_suffix}/#{get_recovery_owner_address!(params)}", params) end |