Sha256: aed7be37b650d81a4f056830b4675788e692c0c818106e7d2df304a278a89c78
Contents?: true
Size: 600 Bytes
Versions: 1
Compression:
Stored size: 600 Bytes
Contents
require "todoly/rest_interface" require "todoly/project" require "todoly/filter" require "todoly/task" class Todoly def initialize(opt={}) @rest_if = RestInterface.new(opt) @projects = nil @filters = nil @tasks = nil end def projects @projects ||= Project.list(@rest_if) end def filters @filters ||= Filter.list(@rest_if) end def tasks @tasks ||= Task.list(@rest_if) end def new_task(str, project = nil) obj = {} if project obj["ProjectId"] = project.id end t = Task.create(str, obj) @tasks << t if @tasks t end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
todoly-0.0.1 | lib/todoly.rb |