Class: ActiveCampaign::User
- Defined in:
- lib/active_campaign/models/user.rb
Overview
:nodoc:
Constant Summary
Constants included from ApiHttp
Class Method Summary collapse
Methods inherited from Model
all, #create, create, #destroy, filter, find, find_by, #save, save, #update
Methods included from Attributes
#only_changes_to_params, #rollback!, #to_params
Class Method Details
.find_by_email(email) ⇒ Object
6 7 8 |
# File 'lib/active_campaign/models/user.rb', line 6 def find_by_email(email) get "#{endpoint}/email/#{email}" end |
.find_by_username(username) ⇒ Object
10 11 12 |
# File 'lib/active_campaign/models/user.rb', line 10 def find_by_username(username) get "#{endpoint}/username/#{username}" end |