Module: Whatconverts::Client::Profile

Included in:
Whatconverts::Client
Defined in:
lib/whatconverts/client/profile.rb

Instance Method Summary collapse

Instance Method Details

#create_profile(account_id, params = {}) ⇒ Object



12
13
14
15
# File 'lib/whatconverts/client/profile.rb', line 12

def create_profile(, params = {})
  params.merge!(method: :post)
  http_service.make_request("accounts/#{}/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(, profile_id, params = {})
  params.merge!(method: :delete)
  http_service.make_request("accounts/#{}/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(, profile_id, params = {})
  params.merge!(method: :post)
  http_service.make_request("accounts/#{}/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(, profile_id, params = {})
  http_service.make_request("accounts/#{}/profiles/#{profile_id}", params)
end

#profiles(account_id, params = {}) ⇒ Object



4
5
6
# File 'lib/whatconverts/client/profile.rb', line 4

def profiles(, params = {})
  http_service.make_request("accounts/#{}/profiles", params)
end