class BikeReg::Client

Constants

BASE_URL

Public Instance Methods

connection() click to toggle source
# File lib/bike_reg/client.rb, line 15
def connection
  @connection ||= Faraday.new(BASE_URL) do |conn|
    conn.request :json
    conn.response :json, content_type: 'application/json'
  end
end
event() click to toggle source
# File lib/bike_reg/client.rb, line 7
def event
  EventResource.new(self)
end
registrations() click to toggle source
# File lib/bike_reg/client.rb, line 11
def registrations
  RegistrationResource.new(self)
end