Class: Pipekit::Person

Inherits:
Object
  • Object
show all
Includes:
Repository
Defined in:
lib/pipekit/person.rb

Instance Method Summary collapse

Methods included from Repository

#all, #create, #find_by, included, #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



5
6
7
# File 'lib/pipekit/person.rb', line 5

def get_by_email(email)
  request.get("/#{uri}/find", term: email, search_by_email: 1)
end

#get_by_name(name) ⇒ Object



9
10
11
# File 'lib/pipekit/person.rb', line 9

def get_by_name(name)
  request.get("/#{uri}/find", term: name)
end