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

Version Path
learn-web-1.5.5 lib/learn_web/client/environment.rb
learn-web-1.5.4 lib/learn_web/client/environment.rb
learn-web-1.5.3 lib/learn_web/client/environment.rb
learn-web-1.5.2 lib/learn_web/client/environment.rb
learn-web-1.5.1 lib/learn_web/client/environment.rb
learn-web-1.5.0 lib/learn_web/client/environment.rb
learn-web-1.4.2 lib/learn_web/client/environment.rb
learn-web-1.4.1 lib/learn_web/client/environment.rb