class Betradar::Client
Constants
- BASE_URL
Attributes
api_key[RW]
Public Class Methods
new(api_key)
click to toggle source
# File lib/betradar/client.rb, line 13 def initialize(api_key) @api_key = api_key end
Private Instance Methods
headers()
click to toggle source
# File lib/betradar/client.rb, line 23 def headers { "x-access-token": api_key } end
request_url(path)
click to toggle source
# File lib/betradar/client.rb, line 19 def request_url(path) "#{BASE_URL}/#{path}" end