Module: Whatconverts::Client::Profile
- Included in:
- Whatconverts::Client
- Defined in:
- lib/whatconverts/client/profile.rb
Instance Method Summary collapse
- #create_profile(account_id, params = {}) ⇒ Object
- #delete_profile(account_id, profile_id, params = {}) ⇒ Object
- #edit_profile(account_id, profile_id, params = {}) ⇒ Object
- #profile(account_id, profile_id, params = {}) ⇒ Object
- #profiles(account_id, params = {}) ⇒ Object
Instance Method Details
#create_profile(account_id, params = {}) ⇒ Object
12 13 14 15 |
# File 'lib/whatconverts/client/profile.rb', line 12 def create_profile(account_id, params = {}) params.merge!(method: :post) http_service.make_request("accounts/#{account_id}/profiles", params) end |
#delete_profile(account_id, profile_id, params = {}) ⇒ Object
22 23 24 25 |
# File 'lib/whatconverts/client/profile.rb', line 22 def delete_profile(account_id, profile_id, params = {}) params.merge!(method: :delete) http_service.make_request("accounts/#{account_id}/profiles/#{profile_id}", params) end |
#edit_profile(account_id, profile_id, params = {}) ⇒ Object
17 18 19 20 |
# File 'lib/whatconverts/client/profile.rb', line 17 def edit_profile(account_id, profile_id, params = {}) params.merge!(method: :post) http_service.make_request("accounts/#{account_id}/profiles/#{profile_id}", params) end |
#profile(account_id, profile_id, params = {}) ⇒ Object
8 9 10 |
# File 'lib/whatconverts/client/profile.rb', line 8 def profile(account_id, profile_id, params = {}) http_service.make_request("accounts/#{account_id}/profiles/#{profile_id}", params) end |
#profiles(account_id, params = {}) ⇒ Object
4 5 6 |
# File 'lib/whatconverts/client/profile.rb', line 4 def profiles(account_id, params = {}) http_service.make_request("accounts/#{account_id}/profiles", params) end |