Sha256: 4d7af536a3ff52a178235c980196f696e473ee866ba4d1a839ecd07430509741

Contents?: true

Size: 393 Bytes

Versions: 20

Compression:

Stored size: 393 Bytes

Contents

module Highrise
  class Subject < Base
    def notes
      Note.find_all_across_pages(:from => "/#{self.class.collection_name}/#{id}/notes.xml")
    end

    def emails
      Email.find_all_across_pages(:from => "/#{self.class.collection_name}/#{id}/emails.xml")
    end

    def upcoming_tasks
      Task.find(:all, :from => "/#{self.class.collection_name}/#{id}/tasks.xml")
    end
  end
end

Version data entries

20 entries across 20 versions & 4 rubygems

Version Path
kmayer-highrise-0.11.0 lib/highrise/subject.rb
kmayer-highrise-0.11.1 lib/highrise/subject.rb
kmayer-highrise-0.12.0 lib/highrise/subject.rb
kmayer-highrise-0.13.0 lib/highrise/subject.rb
kmayer-highrise-0.7.0 lib/highrise/subject.rb
kmayer-highrise-0.7.1 lib/highrise/subject.rb
kmayer-highrise-0.8.0 lib/highrise/subject.rb
kmayer-highrise-0.8.1 lib/highrise/subject.rb
kmayer-highrise-0.9.0 lib/highrise/subject.rb
kmayer-highrise-0.9.1 lib/highrise/subject.rb
kmayer-highrise-0.9.2 lib/highrise/subject.rb
kmayer-highrise-1.0.1 lib/highrise/subject.rb
slainer68-highrise-0.6.1 lib/highrise/subject.rb
slainer68-highrise-0.6.2 lib/highrise/subject.rb
slainer68-highrise-0.6 lib/highrise/subject.rb
tapajos-highrise-0.6 lib/highrise/subject.rb
tapajos-highrise-0.8.0 lib/highrise/subject.rb
highrise-1.0.4 lib/highrise/subject.rb
highrise-1.0.3 lib/highrise/subject.rb
highrise-1.0.2 lib/highrise/subject.rb