Module: Whatconverts::Client::Account
- Included in:
- Whatconverts::Client
- Defined in:
- lib/whatconverts/client/account.rb
Instance Method Summary collapse
- #account(account_id, params = {}) ⇒ Object
- #accounts(params = {}) ⇒ Object
- #create_account(params = {}) ⇒ Object
- #delete_account(account_id, params = {}) ⇒ Object
- #edit_account(account_id, params = {}) ⇒ Object
Instance Method Details
#account(account_id, params = {}) ⇒ Object
8 9 10 |
# File 'lib/whatconverts/client/account.rb', line 8 def account(account_id, params = {}) http_service.make_request("accounts/#{account_id}", params) end |
#accounts(params = {}) ⇒ Object
4 5 6 |
# File 'lib/whatconverts/client/account.rb', line 4 def accounts(params= {}) http_service.make_request('accounts', params) end |
#create_account(params = {}) ⇒ Object
12 13 14 15 |
# 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 = {}) ⇒ Object
22 23 24 25 |
# 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 = {}) ⇒ Object
17 18 19 20 |
# 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 |