Class: Pipekit::User
Constant Summary collapse
- SINGULAR_CLASSNAME =
"user".freeze
- PLURALIZED_CLASSNAME =
"users".freeze
Instance Method Summary collapse
Methods included from Repository
#all, #create, #find_by, #initialize, #update, #where
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Pipekit::Repository
Instance Method Details
#get_by_email(email) ⇒ Object
7 8 9 |
# File 'lib/pipekit/user.rb', line 7 def get_by_email(email) request.get('find', term: email, search_by_email: 1) end |
#get_by_name(name) ⇒ Object
11 12 13 |
# File 'lib/pipekit/user.rb', line 11 def get_by_name(name) request.get('find', term: name) end |