Class: Firekassa::Withdraw

Inherits:
Client
  • Object
show all
Defined in:
lib/firekassa/withdraw.rb

Overview

Withdraw API

Instance Method Summary collapse

Methods inherited from Client

#handle_error, #interpret_response, #send_request

Instance Method Details

#create(data) ⇒ Object



9
10
11
12
# File 'lib/firekassa/withdraw.rb', line 9

def create(data)
  path = "/api/v2/withdrawal"
  send_request(method: :post, path: path, body: data)
end

#currency_rate(data) ⇒ Object



14
15
16
17
# File 'lib/firekassa/withdraw.rb', line 14

def currency_rate(data)
  path = "/api/v2/withdrawal/rate"
  send_request(method: :post, path: path, body: data)
end