Class: Monobank::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/monobank/client.rb

Instance Method Summary collapse

Instance Method Details

#bank_currencyObject



10
11
12
# File 'lib/monobank/client.rb', line 10

def bank_currency
  Bank::Currency.new.call
end

#client_info(token:) ⇒ Object



14
15
16
# File 'lib/monobank/client.rb', line 14

def client_info(token:)
  Personal::ClientInfo.new(auth: auth(token:)).call
end

#set_webhook(token:, url:) ⇒ Object



22
23
24
# File 'lib/monobank/client.rb', line 22

def set_webhook(token:, url:)
  Personal::Webhook.new(url:, auth: auth(token:)).call
end

#statement(token:, account_id:, from:, to: nil) ⇒ Object



18
19
20
# File 'lib/monobank/client.rb', line 18

def statement(token:, account_id:, from:, to: nil)
  Personal::Statement.new(account_id:, from:, to:, auth: auth(token:)).call
end