Module: RUBG

Defined in:
lib/rubg.rb,
lib/rubg/match.rb,
lib/rubg/client.rb,
lib/rubg/player.rb,
lib/rubg/roster.rb,
lib/rubg/status.rb,
lib/rubg/version.rb,
lib/rubg/participant.rb,
lib/rubg/rubg_endpoint.rb,
lib/rubg/json_gzip_parser.rb,
lib/rubg/match_collection.rb,
lib/rubg/player_collection.rb

Defined Under Namespace

Classes: Client, JsonGzipParser, Match, MatchCollection, Participant, Player, PlayerCollection, Roster, RubgEndpoint, Status

Constant Summary collapse

VERSION =
"0.2.3"

Class Method Summary collapse

Class Method Details

.new(args = {}) ⇒ Object



21
22
23
# File 'lib/rubg.rb', line 21

def self.new(args={})
  RUBG::Client.new(args)
end

.shardsObject

This doesn’t serve a huge purpose, but is a reminder of the currently defined shards as published by Bluehole. developer.playbattlegrounds.com/docs/en/making-requests.html#regions Updated: 3/14/2018 @ 1:57PM EST



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/rubg.rb', line 28

def self.shards
  {
    "pc-na"     => "PC - North Amaerica",
    "pc-eu"     => "PC - Europe",
    "pc-krjp"   => "PC - Korea/Japan",
    "pc-oc"     => "PC - Oceania",
    "pc-kakao"  => "PC - Kakao",
    "pc-sea"    => "PC - South East Asia",
    "pc-sa"     => "PC - South America",
    "pc-as"     => "PC - Asia",
    "xbox-na"   => "XBOX - North America",
    "xbox-eu"   => "XBOX - Europe",
    "xbox-as"   => "XBOX - Asia",
    "xbox-oc"   => "XBOX - Oceania"
  }
end