Module: BWAPI::Client::Me

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

Instance Method Summary collapse

Instance Method Details

#client_idString

Get users client id

Returns:

  • (String)

    Users client id



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

def client_id
  me.client.id
end

#client_nameString

Get users client name

Returns:

  • (String)

    Users client name



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

def client_name
  me.client.name
end

#meHashie::Mash

Get user information

Returns:

  • (Hashie::Mash)

    User information



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

def me
  get 'me'
end

#user_idString

Get users id

Returns:

  • (String)

    Users role



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

def user_id
  me.id
end