Sha256: c7d65d23b855db8242c97aa80dd37a01946fceb363082c8a7d2a2d987204ab36

Contents?: true

Size: 754 Bytes

Versions: 1

Compression:

Stored size: 754 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(reponse)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
learn-web-1.4.0 lib/learn_web/client/environment.rb