Sha256: b27c3e28d453dc7f6d093f90478c71aff134c72e457f896d6526783caf237227

Contents?: true

Size: 341 Bytes

Versions: 8

Compression:

Stored size: 341 Bytes

Contents

module Highrise
  class Kase < Subject
    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
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
peterosullivan-highrise-3.0.7 lib/highrise/kase.rb
peterosullivan-highrise-3.0.6 lib/highrise/kase.rb
peterosullivan-highrise-3.0.5 lib/highrise/kase.rb
peterosullivan-highrise-3.0.4 lib/highrise/kase.rb
peterosullivan-highrise-3.0.3 lib/highrise/kase.rb
peterosullivan-highrise-3.0.2 lib/highrise/kase.rb
highrise-3.0.1 lib/highrise/kase.rb
highrise-3.0.0 lib/highrise/kase.rb