Class: Pipekit::Deal

Inherits:
Object
  • Object
show all
Includes:
Repository
Defined in:
lib/pipekit/deal.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_person_id(person_id) ⇒ Object



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

def get_by_person_id(person_id)
  request.get("/#{Pipekit::Person.uri}/#{person_id}/#{self.class.uri}")
end