Class: Odesk::Api::Routers::Auth

Inherits:
Object
  • Object
show all
Defined in:
lib/odesk/api/routers/auth.rb

Overview

Get My Info

Constant Summary collapse

ENTRY_POINT =
'api'

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Auth

Init

Arguments:

client: (Client)


25
26
27
28
# File 'lib/odesk/api/routers/auth.rb', line 25

def initialize(client)
  @client = client
  @client.epoint = ENTRY_POINT 
end

Instance Method Details

#get_user_infoObject

Get info of authenticated user



31
32
33
34
# File 'lib/odesk/api/routers/auth.rb', line 31

def 
  $LOG.i "running " + __method__.to_s
  @client.get '/auth/v1/info'
end