Sha256: 649dff59dfce0f6791c910d8c1f17565aedbadb82ff7a3f5a64bb808b23342ab

Contents?: true

Size: 599 Bytes

Versions: 4

Compression:

Stored size: 599 Bytes

Contents

require 'securerandom'
require 'stringio'

require 'active_record'
require 'nokogiri'
require 'opener/kaf_to_json'
require 'opener/scorer'

require_relative 'outlet/output'
require_relative 'outlet/version'
require_relative 'outlet/server'
require_relative 'outlet/visualizer'

require_relative '../../config/database'

module Opener
  class Outlet
    attr_reader :uuid

    def initialize(options = {})
      @uuid = options[:request_id] || SecureRandom.hex
    end

    def run(input)
      output = Output.new(:uuid=>uuid, :text=>input)

      output.save!

      return input
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
opener-outlet-2.0.3 lib/opener/outlet.rb
opener-outlet-2.0.2 lib/opener/outlet.rb
opener-outlet-2.0.1 lib/opener/outlet.rb
opener-outlet-2.0.0 lib/opener/outlet.rb