Class: StraddlePay::Resources::AccountSettings

Inherits:
Base
  • Object
show all
Defined in:
lib/straddle_pay/resources/account_settings.rb

Overview

Retrieve account settings.

Constant Summary

Constants inherited from Base

Base::HEADER_KEYS

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from StraddlePay::Resources::Base

Instance Method Details

#get(account_id, **options) ⇒ Hash

Get resolved settings for an account.

Parameters:

  • account_id (String)

    account ID

  • options (Hash)

    header params

Returns:

  • (Hash)

    resolved account settings



12
13
14
15
# File 'lib/straddle_pay/resources/account_settings.rb', line 12

def get(, **options)
  headers = extract_headers(options)
  @client.get("v1/account_settings/#{account_id}", headers: headers)
end