class OmniFocus::Extrabrain::Task

Attributes

id[RW]
project_id[RW]
project_title[W]
team[RW]
title[RW]

Public Class Methods

new(attrs = {}) click to toggle source
# File lib/omnifocus/extrabrain.rb, line 13
def initialize(attrs = {})
  attrs.each do |attribute, value|
    setter = "#{attribute}="
    if respond_to? setter
      public_send setter, value
    end
  end
end

Public Instance Methods

project_title() click to toggle source
# File lib/omnifocus/extrabrain.rb, line 30
def project_title
  if @project_title.to_s.gsub(' ', '') == ''
    'Miscellaneous'
  else
    @project_title
  end
end
ticket_id() click to toggle source
# File lib/omnifocus/extrabrain.rb, line 26
def ticket_id
  "#{PREFIX}##{id}"
end
url() click to toggle source
# File lib/omnifocus/extrabrain.rb, line 22
def url
  "https://#{team['subdomain']}.extrabrain.se/tasks/#{id}"
end