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



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

def next_review_date
  thing.next_review_date.get
end

#review_intervalObject



652
653
654
# File 'lib/omnifocus.rb', line 652

def review_interval
  thing.review_interval.get
end

#review_interval=(h) ⇒ Object



656
657
658
# File 'lib/omnifocus.rb', line 656

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

#tasksObject



664
665
666
# File 'lib/omnifocus.rb', line 664

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

#unscheduledObject



642
643
644
# File 'lib/omnifocus.rb', line 642

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

#unscheduled_tasksObject



646
647
648
649
650
# File 'lib/omnifocus.rb', line 646

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