Sha256: cac9902efb410e41c7c3c31eba55b63f5595950c24ca9725ecd6a3f4cdd7e6ed
Contents?: true
Size: 654 Bytes
Versions: 1
Compression:
Stored size: 654 Bytes
Contents
module Highrise class Task < Base DUE_DATES = %w[today tomorrow this_week next_week later] # TODO: combine with DealCategory in a single model maybe class TaskCategory < Base def self.find_by_name(name) find(:all).select{|category| category.name == name}.first end def self.delete!(name) category = self.find_by_name(name) delete(category.id) if category end end # find(:all, :from => :upcoming) # find(:all, :from => :assigned) # find(:all, :from => :completed) def complete! load_attributes_from_response(post(:complete)) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
soleone-highrise-0.13.3 | lib/highrise/task.rb |