Class: Qonto::Client
- Inherits:
-
Object
- Object
- Qonto::Client
- Includes:
- Actions::Organization, Actions::Transactions
- Defined in:
- lib/qonto/client.rb
Constant Summary collapse
- API_VERSION =
'v2'.freeze
- BASE_URL =
'https://thirdparty.qonto.eu/'.freeze
- USER_AGENT =
"qonto-ruby/#{VERSION}".freeze
Instance Method Summary collapse
- #base_url ⇒ Object
- #get(path, options = {}) ⇒ Object
-
#initialize(slug:, secret_key:) ⇒ Client
constructor
A new instance of Client.
Methods included from Actions::Transactions
Methods included from Actions::Organization
Constructor Details
#initialize(slug:, secret_key:) ⇒ Client
Returns a new instance of Client.
15 16 17 18 |
# File 'lib/qonto/client.rb', line 15 def initialize(slug:, secret_key:) @slug = slug @secret_key = secret_key end |
Instance Method Details
#base_url ⇒ Object
20 21 22 |
# File 'lib/qonto/client.rb', line 20 def base_url "#{BASE_URL}#{API_VERSION}" end |
#get(path, options = {}) ⇒ Object
24 25 26 |
# File 'lib/qonto/client.rb', line 24 def get(path, = {}) execute(:get, path, ) end |