Class: BatchBook::Comment
- Defined in:
- lib/batchbook.rb
Instance Method Summary collapse
- #communication ⇒ Object
- #communication=(communication) ⇒ Object
- #company ⇒ Object
- #company=(company) ⇒ Object
- #deal ⇒ Object
- #deal=(deal) ⇒ Object
- #list ⇒ Object
- #list=(list) ⇒ Object
- #person ⇒ Object
- #person=(person) ⇒ Object
- #todo ⇒ Object
- #todo=(todo) ⇒ Object
Methods inherited from Base
Instance Method Details
#communication ⇒ Object
372 373 374 |
# File 'lib/batchbook.rb', line 372 def communication Communication.find(self.[:communication_id]) end |
#communication=(communication) ⇒ Object
376 377 378 |
# File 'lib/batchbook.rb', line 376 def communication=(communication) self.[:communication_id] = communication.id end |
#company ⇒ Object
380 381 382 |
# File 'lib/batchbook.rb', line 380 def company Company.find(self.[:company_id]) end |
#company=(company) ⇒ Object
384 385 386 |
# File 'lib/batchbook.rb', line 384 def company=(company) self.[:company_id] = company.id end |
#deal ⇒ Object
388 389 390 |
# File 'lib/batchbook.rb', line 388 def deal Deal.find(self.[:deal_id]) end |
#deal=(deal) ⇒ Object
392 393 394 |
# File 'lib/batchbook.rb', line 392 def deal=(deal) self.[:deal_id] = deal.id end |
#list ⇒ Object
396 397 398 |
# File 'lib/batchbook.rb', line 396 def list List.find(self.[:list_id]) end |
#list=(list) ⇒ Object
400 401 402 |
# File 'lib/batchbook.rb', line 400 def list=(list) self.[:list_id] = list.id end |
#person ⇒ Object
404 405 406 |
# File 'lib/batchbook.rb', line 404 def person Person.find(self.[:person_id]) end |
#person=(person) ⇒ Object
408 409 410 |
# File 'lib/batchbook.rb', line 408 def person=(person) self.[:person_id] = person.id end |
#todo ⇒ Object
412 413 414 |
# File 'lib/batchbook.rb', line 412 def todo Todo.find(self.[:todo_id]) end |
#todo=(todo) ⇒ Object
416 417 418 |
# File 'lib/batchbook.rb', line 416 def todo=(todo) self.[:todo_id] = todo.id end |