class Resource

Constants

BASE_URL

Public Class Methods

new(api_token, path) click to toggle source
# File lib/loadlab/client.rb, line 6
def initialize(api_token, path)
    @path = path
    @headers = {
        Authorization: "Token #{api_token}",
        Accept: 'application/json',
    }         
end

Public Instance Methods

get() click to toggle source
# File lib/loadlab/client.rb, line 14
def get
    HTTParty.get(BASE_URL + @path, headers: @headers)
end