Sha256: a90c8126a392fbc75464ad8c5b4ad17f41eef5abf6623f1660972191414e218c

Contents?: true

Size: 581 Bytes

Versions: 1

Compression:

Stored size: 581 Bytes

Contents

require "rb-scpt"
require "thingamajig/version"
require "thingamajig/osa_object"
require "thingamajig/modules/container"

require "thingamajig/area"
require "thingamajig/list"
require "thingamajig/todo"
require "thingamajig/project"


class Thingamajig
  attr :app

  def osa_object
    app
  end

  def initialize
    @app ||= Appscript.app("Things3")
  end

  def projects
    app.projects.get.map do |osa_project|
      Thingamajig::Project.new(osa_project)
    end
  end

  def todos
    app.to_dos.get.map do |osa_todo|
      Thingamajig::Todo.new(osa_todo)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
thingamajig-0.1.1 lib/thingamajig.rb