Module: Waitlisted::Client
- Included in:
- Waitlisted
- Defined in:
- lib/waitlisted/client.rb
Instance Method Summary collapse
Instance Method Details
#client ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/waitlisted/client.rb', line 3 def client raise Waitlisted::ConfigurationError, " You must specify a waitlisted url in the configuration block. (http://mysite.app.waitlisted.co) " if Waitlisted.configuration.url.nil? Faraday.new(:url => Waitlisted.configuration.url) do |faraday| faraday.request :url_encoded # form-encode POST params # faraday.response :logger # log requests to STDOUT faraday.adapter Faraday.default_adapter # make requests with Net::HTTP end end |