Class: Highrise::Kase

Inherits:
Subject
  • Object
show all
Includes:
Pagination
Defined in:
lib/highrise/kase.rb

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_pagesObject


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_pagesObject


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

.closedObject


17
18
19
# File 'lib/highrise/kase.rb', line 17

def self.closed
  Kase.find(:all, :from => "/kases/closed.xml")
end

.openObject


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