Class: OmniFocus::Project

Inherits:
Thingy show all
Defined in:
lib/omnifocus.rb

Instance Attribute Summary

Attributes inherited from Thingy

#omnifocus, #thing

Instance Method Summary collapse

Methods inherited from Thingy

#active, #id, #initialize, #inspect, #method_missing, #name

Constructor Details

This class inherits a constructor from OmniFocus::Thingy

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class OmniFocus::Thingy

Instance Method Details

#next_review_dateObject



679
680
681
# File 'lib/omnifocus.rb', line 679

def next_review_date
  thing.next_review_date.get
end

#review_intervalObject



671
672
673
# File 'lib/omnifocus.rb', line 671

def review_interval
  thing.review_interval.get
end

#review_interval=(h) ⇒ Object



675
676
677
# File 'lib/omnifocus.rb', line 675

def review_interval= h
  thing.review_interval.set :to => h
end

#tasksObject



683
684
685
# File 'lib/omnifocus.rb', line 683

def tasks
  thing.tasks[active].get.map { |t| Task.new omnifocus, t }
end

#unscheduledObject



661
662
663
# File 'lib/omnifocus.rb', line 661

def unscheduled
  its.due_date.eq(:missing_value)
end

#unscheduled_tasksObject



665
666
667
668
669
# File 'lib/omnifocus.rb', line 665

def unscheduled_tasks
  thing.tasks[active.and(unscheduled)].get.map { |t|
    Task.new omnifocus, t
  }
end