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



835
836
837
# File 'lib/omnifocus.rb', line 835

def next_review_date
  thing.next_review_date.get
end

#review_intervalObject



827
828
829
# File 'lib/omnifocus.rb', line 827

def review_interval
  thing.review_interval.get
end

#review_interval=(h) ⇒ Object



831
832
833
# File 'lib/omnifocus.rb', line 831

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

#tasksObject



839
840
841
# File 'lib/omnifocus.rb', line 839

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

#unscheduledObject



817
818
819
# File 'lib/omnifocus.rb', line 817

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

#unscheduled_tasksObject



821
822
823
824
825
# File 'lib/omnifocus.rb', line 821

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