Module: Highrise::Pagination::ClassMethods

Defined in:
lib/highrise/pagination.rb

Instance Method Summary collapse

Instance Method Details

#find_all_across_pages(options = {}) ⇒ Object


8
9
10
11
12
# File 'lib/highrise/pagination.rb', line 8

def find_all_across_pages(options = {})
  records = []
  each(options) { |record| records << record }
  records
end

#find_all_across_pages_since(time) ⇒ Object

This only is usefull for company, person & recordings, but should be safely ignored by other classes


15
16
17
# File 'lib/highrise/pagination.rb', line 15

def find_all_across_pages_since(time)
  find_all_across_pages(:params => { :since => time.utc.strftime("%Y%m%d%H%M%S") })
end

#find_all_deletions_across_pages(options = {}) ⇒ Object

This is useful only for Company, Person, Note, Comment, Email and Task, but should be safely ignored by other classes


20
21
22
23
24
25
26
27
# File 'lib/highrise/pagination.rb', line 20

def find_all_deletions_across_pages(options = {})
  # point to the global deletions feed
  options[:from] = '/deletions.xml'

  records = []
  each_deletions(options) { |record| records << record }
  records
end

#find_all_deletions_across_pages_since(time) ⇒ Object

This is useful only for Company, Person, Note, Comment, Email and Task, but should be safely ignored by other classes


30
31
32
# File 'lib/highrise/pagination.rb', line 30

def find_all_deletions_across_pages_since(time)
  find_all_deletions_across_pages(:params => { :since => time.utc.strftime("%Y%m%d%H%M%S") })
end