Class: BatchBook::Comment

Inherits:
Base
  • Object
show all
Defined in:
lib/batchbook.rb

Instance Method Summary collapse

Methods inherited from Base

inherited

Instance Method Details

#communicationObject



372
373
374
# File 'lib/batchbook.rb', line 372

def communication
  Communication.find(self.prefix_options[:communication_id])
end

#communication=(communication) ⇒ Object



376
377
378
# File 'lib/batchbook.rb', line 376

def communication=(communication)
  self.prefix_options[:communication_id] = communication.id
end

#companyObject



380
381
382
# File 'lib/batchbook.rb', line 380

def company
  Company.find(self.prefix_options[:company_id])
end

#company=(company) ⇒ Object



384
385
386
# File 'lib/batchbook.rb', line 384

def company=(company)
  self.prefix_options[:company_id] = company.id
end

#dealObject



388
389
390
# File 'lib/batchbook.rb', line 388

def deal
  Deal.find(self.prefix_options[:deal_id])
end

#deal=(deal) ⇒ Object



392
393
394
# File 'lib/batchbook.rb', line 392

def deal=(deal)
  self.prefix_options[:deal_id] = deal.id
end

#listObject



396
397
398
# File 'lib/batchbook.rb', line 396

def list
  List.find(self.prefix_options[:list_id])
end

#list=(list) ⇒ Object



400
401
402
# File 'lib/batchbook.rb', line 400

def list=(list)
  self.prefix_options[:list_id] = list.id
end

#personObject



404
405
406
# File 'lib/batchbook.rb', line 404

def person
  Person.find(self.prefix_options[:person_id])
end

#person=(person) ⇒ Object



408
409
410
# File 'lib/batchbook.rb', line 408

def person=(person)
  self.prefix_options[:person_id] = person.id
end

#todoObject



412
413
414
# File 'lib/batchbook.rb', line 412

def todo
  Todo.find(self.prefix_options[:todo_id])
end

#todo=(todo) ⇒ Object



416
417
418
# File 'lib/batchbook.rb', line 416

def todo=(todo)
  self.prefix_options[:todo_id] = todo.id
end