Method: Camdram::Client#user
- Defined in:
- lib/camdram/client.rb
#user ⇒ Camdram::User
Returns the user associated with the API token if set, otherwise raises an exception
78 79 80 81 82 |
# File 'lib/camdram/client.rb', line 78 def user slug = "/auth/account.json" response = get(slug) User.new(response) end |