Sha256: 76b0fe78a6fe67399da4999df71f7cf82c0b55aa80adec546fc7522c7e20ca82
Contents?: true
Size: 755 Bytes
Versions: 8
Compression:
Stored size: 755 Bytes
Contents
require 'learn_web/client/environment/setup_list' require 'learn_web/client/environment/verification' module LearnWeb class Client module Environment def environment_setup_list_endpoint "#{API_ROOT}/environmentalizer/steps" end def verification_endpoint "#{API_ROOT}/gem_verifications" end def environment_setup_list response = get(environment_setup_list_endpoint) LearnWeb::Client::Environment::SetupList.new(response) end def verify_environment response = post( verification_endpoint, headers: { 'Authorization' => "Bearer #{token}" } ) LearnWeb::Client::Environment::Verification.new(response) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems