Sha256: 008b10024716667359d70f6c42b2fed581f04523e60f8036c34f4224060ba81b

Contents?: true

Size: 573 Bytes

Versions: 1

Compression:

Stored size: 573 Bytes

Contents

require 'sphere_engine/rest/request'

module SphereEngine
  module REST
    module Utils
    private
      def perform_get_requests_of_problems_service(path, options = {})
        perform_request(:get, :problems, path, options)
      end

      def perform_get_requests_of_compĂ­lers_service(path, options = {})
        perform_request(:get, :compilers, path, options)
      end

      def perform_request(request_method, service, path, options = {})
        SphereEngine::REST::Request.new(self, request_method, service, path, options).perform
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sphere_engine-1.1.0.pre lib/sphere_engine/rest/utils.rb