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



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

def client_id
  me.client.id
end

#client_nameString

Get users client name



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

def client_name
  me.client.name
end

#meHashie::Mash

Get user information



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

def me
  get 'me'
end

#user_idString

Get users id



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

def user_id
  me.id
end