Class: Highrise::Kase
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Subject
#add_note, #add_task, #emails, #label, #notes, #upcoming_tasks
Methods inherited from Base
url_for
Class Method Details
.closed ⇒ Object
15
16
17
|
# File 'lib/highrise/kase.rb', line 15
def self.closed
Kase.find(:all, :from => "/kases/closed.xml")
end
|
.open ⇒ Object
11
12
13
|
# File 'lib/highrise/kase.rb', line 11
def self.open
Kase.find(:all, :from => "/kases/open.xml")
end
|
Instance Method Details
#close! ⇒ Object
7
8
9
|
# File 'lib/highrise/kase.rb', line 7
def close!
update_attribute(:closed_at, Time.now.utc)
end
|
#open! ⇒ Object
3
4
5
|
# File 'lib/highrise/kase.rb', line 3
def open!
update_attribute(:closed_at, nil)
end
|