Class: HabiticaClient::User

Inherits:
ApiBase
  • Object
show all
Defined in:
lib/habitica_client/user.rb,
lib/habitica_client/user/stats.rb

Overview

The authed user.

Defined Under Namespace

Modules: StatsProperty Classes: Stats

Instance Attribute Summary

Attributes inherited from ApiBase

#client

Instance Method Summary collapse

Methods inherited from ApiBase

#data, #endpoint, endpoint, #initialize

Constructor Details

This class inherits a constructor from HabiticaClient::ApiBase

Instance Method Details

#statsObject



12
13
14
# File 'lib/habitica_client/user.rb', line 12

def stats
  @stats ||= Stats.new(data['stats'])
end