Class: BikeReg::Client
- Inherits:
-
Object
- Object
- BikeReg::Client
- Defined in:
- lib/bike_reg/client.rb
Constant Summary collapse
- BASE_URL =
'https://www.BikeReg.com/api'
Instance Method Summary collapse
Instance Method Details
#connection ⇒ Object
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 |
#event ⇒ Object
7 8 9 |
# File 'lib/bike_reg/client.rb', line 7 def event EventResource.new(self) end |