steeeve/habitica_client

View on GitHub
lib/habitica_client.rb

Summary

Maintainability
A
0 mins
Test Coverage
class HabiticaClient

  require 'habitica_client/version'
  require 'habitica_client/client'
  require 'habitica_client/user'
  require 'habitica_client/tasks'

  attr_accessor :client

  def initialize(user_id, api_token)
    self.client = Client.new(user_id, api_token)
  end

  def user
    @user ||= User.new(client)
  end

  def tasks
    @tasks ||= Tasks.new(client)
  end

end