Class: Pubg::Player

Inherits:
Base
  • Object
show all
Defined in:
lib/pubg/player.rb

Constant Summary

Constants inherited from Base

Base::BASE_URL

Class Method Summary collapse

Methods inherited from Base

client

Class Method Details

.by_nickname(nickname) ⇒ Object



4
5
6
# File 'lib/pubg/player.rb', line 4

def by_nickname(nickname)
  client.get("profile/pc/#{nickname}").body
end

.by_steam_id(steam_id) ⇒ Object



8
9
10
# File 'lib/pubg/player.rb', line 8

def by_steam_id(steam_id)
  client.get("search?steamId=#{steam_id}").body
end