Class: Highrise::Kase
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Pagination
included
Methods inherited from Subject
#add_note, #add_task, #emails, #label, #notes, #upcoming_tasks
Methods inherited from Base
headers, oauth_token=
Class Method Details
.all_closed_across_pages ⇒ Object
25
26
27
|
# File 'lib/highrise/kase.rb', line 25
def self.all_closed_across_pages
find_all_across_pages(:from => "/kases/closed.xml")
end
|
.all_open_across_pages ⇒ Object
21
22
23
|
# File 'lib/highrise/kase.rb', line 21
def self.all_open_across_pages
find_all_across_pages(:from => "/kases/open.xml")
end
|
.closed ⇒ Object
17
18
19
|
# File 'lib/highrise/kase.rb', line 17
def self.closed
Kase.find(:all, :from => "/kases/closed.xml")
end
|
.open ⇒ Object
13
14
15
|
# File 'lib/highrise/kase.rb', line 13
def self.open
Kase.find(:all, :from => "/kases/open.xml")
end
|
Instance Method Details
#close! ⇒ Object
9
10
11
|
# File 'lib/highrise/kase.rb', line 9
def close!
update_attribute(:closed_at, Time.now.utc)
end
|
#open! ⇒ Object
5
6
7
|
# File 'lib/highrise/kase.rb', line 5
def open!
update_attribute(:closed_at, nil)
end
|