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
-
#me ⇒ Hash
Get user information.
-
#user_client_id ⇒ String
Get users client id.
-
#user_client_name ⇒ String
Get users client name.
-
#user_id ⇒ String
Get users id.
Instance Method Details
#me ⇒ Hash
Get user information
8 9 10 |
# File 'lib/bwapi/client/me.rb', line 8 def me get 'me' end |
#user_client_id ⇒ String
Get users client id
22 23 24 |
# File 'lib/bwapi/client/me.rb', line 22 def user_client_id me.client.id end |
#user_client_name ⇒ String
Get users client name
15 16 17 |
# File 'lib/bwapi/client/me.rb', line 15 def user_client_name me.client.name end |
#user_id ⇒ String
Get users id
29 30 31 |
# File 'lib/bwapi/client/me.rb', line 29 def user_id me.id end |