Module: BWAPI::Client::Me

Included in:
BWAPI::Client
Defined in:
lib/bwapi/client/me.rb

Overview

Me module for me endpoint and helper methods

Instance Method Summary collapse

Instance Method Details

#client_idString

Get users client id

Returns:

  • Users client id



23
24
25
# File 'lib/bwapi/client/me.rb', line 23

def client_id
  me.client.id
end

#client_nameString

Get users client name

Returns:

  • Users client name



16
17
18
# File 'lib/bwapi/client/me.rb', line 16

def client_name
  me.client.name
end

#meHashie::Mash

Get user information

Returns:

  • User information



9
10
11
# File 'lib/bwapi/client/me.rb', line 9

def me
  get 'me'
end

#user_idString

Get users id

Returns:

  • Users role



37
38
39
# File 'lib/bwapi/client/me.rb', line 37

def user_id
  me.id
end