Sha256: 16dbd946d466695219bc1a88a9138fec462a866b9bba8dcf9ae4296637d7cfed

Contents?: true

Size: 464 Bytes

Versions: 2

Compression:

Stored size: 464 Bytes

Contents

module Nin
  module Integration
    module Todoist
      class Client
        BASE_URI = 'https://api.todoist.com/sync/v8'.freeze

        def initialize(token)
          @token = token
        end

        def sync
          @sync ||= Client::Sync.new(@token)
        end

        def projects
          @projects ||= Client::Project.new(@token)
        end

        def items
          @items ||= Client::Item.new(@token)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nin-1.3.0 lib/nin/integration/todoist/client.rb
nin-1.2.0 lib/nin/integration/todoist/client.rb