Sha256: e84c1fe870f783a2da2dd1f6ed4882858850ce56c31df1d6a4d7cc44879aa7bc

Contents?: true

Size: 402 Bytes

Versions: 10

Compression:

Stored size: 402 Bytes

Contents

require 'sinatra/base'
require 'httpclient'
require 'opener/webservice'

module Opener
  class OpinionDetectorBasic
    ##
    # Basic opinion detector server powered by Sinatra.
    #
    class Server < Webservice
      set :views, File.expand_path('../views', __FILE__)
      text_processor OpinionDetectorBasic
      accepted_params :input
    end # Server
  end # OpinionDetectorBasic
end # Opener

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
opener-opinion-detector-basic-1.1.0 lib/opener/opinion_detector_basic/server.rb
opener-opinion-detector-basic-1.0.8 lib/opener/opinion_detector_basic/server.rb
opener-opinion-detector-basic-1.0.7 lib/opener/opinion_detector_basic/server.rb
opener-opinion-detector-basic-1.0.6 lib/opener/opinion_detector_basic/server.rb
opener-opinion-detector-basic-1.0.5 lib/opener/opinion_detector_basic/server.rb
opener-opinion-detector-basic-1.0.4 lib/opener/opinion_detector_basic/server.rb
opener-opinion-detector-basic-1.0.3 lib/opener/opinion_detector_basic/server.rb
opener-opinion-detector-basic-1.0.2 lib/opener/opinion_detector_basic/server.rb
opener-opinion-detector-basic-1.0.1 lib/opener/opinion_detector_basic/server.rb
opener-opinion-detector-basic-1.0.0 lib/opener/opinion_detector_basic/server.rb