Sha256: a3b899853f8bd192d8b5f475b402fa5eb3a17f68360d9550b8cfa13e41ecd3d9

Contents?: true

Size: 611 Bytes

Versions: 1

Compression:

Stored size: 611 Bytes

Contents

# frozen_string_literal: true

require_relative "tredo/version"
require "tredo/restprovider"

module Tredo
  def self.create_todo(name, token = nil, key = nil)
    restclient = RestProvider.new
    todo = Todo.new(restclient, token, key)
    todo.create_card(name)
  end

  def self.todo_lists(token = nil, key = nil)
    restclient = RestProvider.new
    todo = Todo.new(restclient, token, key)
    todo.lists
  end

  def self.todos_for_list(list_id, token = nil, key = nil)
    restclient = RestProvider.new
    todo = Todo.new(restclient, token, key)
    todo.cards(list_id)
  end
end

require "tredo/todo"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tredo-0.1.4 lib/tredo.rb