Sha256: 3636716bccd14252dde0f32d4336a335f2a2e818c17b41a6c9e6e2baccf349f3
Contents?: true
Size: 639 Bytes
Versions: 6
Compression:
Stored size: 639 Bytes
Contents
require 'learn_web/client/event/submission' module LearnWeb class Client module Event attr_reader :client IRONBROKER_URL = 'http://ironbroker-v2.flatironschool.com' def client @client ||= Faraday.new(url: IRONBROKER_URL) do |faraday| faraday.adapter Faraday.default_adapter end end def submission_endpoint '/e/learn_gem' end def submit_event(params) response = post( submission_endpoint, body: params, client: client ) LearnWeb::Client::Event::Submission.new(response) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems