class R6API::API

Attributes

auth_token[RW]
ubiid[RW]

Public Class Methods

new(ubiid=nil, auth_token=nil) click to toggle source
# File lib/r6api.rb, line 31
def initialize(ubiid=nil, auth_token=nil)
        raise RainbowError, 'Missing Auth token or Ubi AppId' unless ubiid && auth_token
        @ubiid = ubiid
        @auth_token = auth_token
end

Public Instance Methods

auth_header() click to toggle source
# File lib/r6api.rb, line 37
def auth_header
        {
                headers: {
                        "Ubi-AppId" => ubiid,
                        "Authorization" => auth_token
                }
        }

end