Class: OmniFocus::Task

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

#completedObject



873
874
875
# File 'lib/omnifocus.rb', line 873

def completed
  thing.completed.get.nilify
end

#due_dateObject



865
866
867
# File 'lib/omnifocus.rb', line 865

def due_date
  thing.due_date.get.nilify
end

#due_date=(t) ⇒ Object



861
862
863
# File 'lib/omnifocus.rb', line 861

def due_date= t
  thing.due_date.set t
end

#projectObject



845
846
847
# File 'lib/omnifocus.rb', line 845

def project
  Project.new omnifocus, thing.containing_project.get
end

#repetitionObject



869
870
871
# File 'lib/omnifocus.rb', line 869

def repetition
  thing.repetition.get.nilify
end

#start_dateObject



855
856
857
858
859
# File 'lib/omnifocus.rb', line 855

def start_date
  thing.start_date.get.nilify
rescue
  thing.defer_date.get.nilify
end

#start_date=(t) ⇒ Object



849
850
851
852
853
# File 'lib/omnifocus.rb', line 849

def start_date= t
  thing.start_date.set t
rescue
  thing.defer_date.set t
end