Module: GogoKit::Client::User

Includes:
Utils
Included in:
GogoKit::Client
Defined in:
lib/gogokit/client/user.rb

Overview

GogoKit::Client methods for getting and updating the authenticated user

Instance Method Summary collapse

Methods included from Utils

#object_from_response

Instance Method Details

#get_user(options = {}) ⇒ GogoKit::User

Retrieves account information for the authenticated user

Parameters:

  • options (Hash) (defaults to: {})

    Optional options

Returns:



14
15
16
17
18
19
20
# File 'lib/gogokit/client/user.rb', line 14

def get_user(options = {})
  object_from_response(GogoKit::User,
                       GogoKit::UserRepresenter,
                       :get,
                       get_root.links['viagogo:user'].href,
                       options)
end