Class: BikeReg::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/bike_reg/client.rb

Constant Summary collapse

BASE_URL =
'https://www.BikeReg.com/api'

Instance Method Summary collapse

Instance Method Details

#connectionObject



11
12
13
14
15
16
# File 'lib/bike_reg/client.rb', line 11

def connection
  @connection ||= Faraday.new(BASE_URL) do |conn|
    conn.request :json
    conn.response :json, content_type: 'application/json'
  end
end

#eventObject



7
8
9
# File 'lib/bike_reg/client.rb', line 7

def event
  EventResource.new(self)
end