class ArmorPayments::Users

Public Instance Methods

authentications(user_id) click to toggle source
# File lib/armor_payments/api/users.rb, line 14
def authentications user_id
  ArmorPayments::Authentications.new(host, authenticator, uri(user_id))
end
create(data) click to toggle source
# File lib/armor_payments/api/users.rb, line 4
def create data
  headers = authenticator.secure_headers 'post', uri
  request :post, { path: uri, headers: headers, body: JSON.generate(data) }
end
update(user_id, data) click to toggle source
# File lib/armor_payments/api/users.rb, line 9
def update user_id, data
  headers = authenticator.secure_headers 'post', uri(user_id)
  request :post, { path: uri(user_id), headers: headers, body: JSON.generate(data) }
end