Sha256: 8a133e47d5c44bd629c0b8ddaca64918b0439848264c3693150764e96a6ea80d

Contents?: true

Size: 570 Bytes

Versions: 11

Compression:

Stored size: 570 Bytes

Contents

module Highrise
  class Kase < Subject
    include Pagination

    def open!
      update_attribute(:closed_at, nil)
    end

    def close!
      update_attribute(:closed_at, Time.now.utc)
    end

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

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

    def self.all_open_across_pages
      find_all_across_pages(:from => "/kases/open.xml")
    end

    def self.all_closed_across_pages
      find_all_across_pages(:from => "/kases/closed.xml")
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
highrise-3.2.3 lib/highrise/kase.rb
highrise-3.2.1 lib/highrise/kase.rb
highrise-3.1.6 lib/highrise/kase.rb
highrise-3.1.5 lib/highrise/kase.rb
highrise-3.1.2 lib/highrise/kase.rb
highrise-3.1.1 lib/highrise/kase.rb
highrise-3.1.0 lib/highrise/kase.rb
highrise-3.1.0.pre lib/highrise/kase.rb
highrise-3.0.5 lib/highrise/kase.rb
highrise-3.0.4 lib/highrise/kase.rb
highrise-3.0.3 lib/highrise/kase.rb