Class: Tazapay::User
Overview
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/tazapay/user.rb', line 9
def create(data)
path = "v1/user"
send_request(method: :post, path: path, body: data)
end
|
#find(id_or_email) ⇒ Object
19
20
21
22
|
# File 'lib/tazapay/user.rb', line 19
def find(id_or_email)
path = "v1/user/#{id_or_email}"
send_request(method: :get, path: path)
end
|
#update(id, data) ⇒ Object
14
15
16
17
|
# File 'lib/tazapay/user.rb', line 14
def update(id, data)
path = "v1/user"
send_request(method: :post, path: path, body: data.merge(account_id: id))
end
|