Sha256: 049d21b89592c5bf7974e1d460843c7e282f7cd05bb09632029a9880df7fee6a

Contents?: true

Size: 855 Bytes

Versions: 3

Compression:

Stored size: 855 Bytes

Contents

module SphereEngine
  module REST
    module Problems
      include SphereEngine::REST::Utils

      # @param options [Hash]
      # This request you could send a limit and offset
      def all_problems(options = {})
        perform_get_requests_of_problems_service('/problems', options)
      end

      # @param options [Hash]
      # This request you could send a limit and offset
      def create_problem(options = {})
        perform_post_requests_of_problems_service('/problems', options)
      end

      # @param code [String]
      def get_problem(code)
        perform_get_requests_of_problems_service("/problems/#{code}")
      end

      # @param code [String]
      # @param options [Hash]
      def update_problem(code, options = {})
        perform_put_requests_of_problems_service("/problems/#{code}", options)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sphere_engine-1.1.0 lib/sphere_engine/rest/problems.rb
sphere_engine-1.0.0 lib/sphere_engine/rest/problems.rb
sphere_engine-1.3.0.pre lib/sphere_engine/rest/problems.rb