module Whatconverts::Client::Account

Public Instance Methods

account(account_id, params = {}) click to toggle source
# File lib/whatconverts/client/account.rb, line 8
def account(account_id, params = {})
  http_service.make_request("accounts/#{account_id}", params)
end
accounts(params= {}) click to toggle source
# File lib/whatconverts/client/account.rb, line 4
def accounts(params= {})
  http_service.make_request('accounts', params)
end
create_account(params = {}) click to toggle source
# File lib/whatconverts/client/account.rb, line 12
def create_account(params = {})
  params.merge!(method: :post)
  http_service.make_request('accounts', params)
end
delete_account(account_id, params = {}) click to toggle source
# File lib/whatconverts/client/account.rb, line 22
def delete_account(account_id, params = {})
  params.merge!(method: :delete)
  http_service.make_request("accounts/#{account_id}", params)
end
edit_account(account_id, params = {}) click to toggle source
# File lib/whatconverts/client/account.rb, line 17
def edit_account(account_id, params = {})
  params.merge!(method: :post)
  http_service.make_request("accounts/#{account_id}", params)
end