class LSports::Client
Constants
- BASE_URL
Attributes
guid[RW]
password[RW]
username[RW]
Public Class Methods
new(username:, password:, guid:)
click to toggle source
# File lib/lsports/client.rb, line 11 def initialize(username:, password:, guid:) @username = username @password = password @guid = guid end
Public Instance Methods
params()
click to toggle source
# File lib/lsports/client.rb, line 25 def params { username: username, password: password, guid: guid } end
query_params(query)
click to toggle source
# File lib/lsports/client.rb, line 21 def query_params(query) { params: params.merge(query) } end
request_url(path)
click to toggle source
# File lib/lsports/client.rb, line 17 def request_url(path) "#{BASE_URL}/#{path}" end