Sha256: 59eede35662b6a8463bac742935501284dd372c2d250ad7ba2a93b894735b02e

Contents?: true

Size: 359 Bytes

Versions: 1

Compression:

Stored size: 359 Bytes

Contents

require_relative "request"
require_relative "endpoints"

module Tika
  module Requests

    include Endpoints

    def self.request_class(endpoint)
      klass = Class.new(Request)
      klass.endpoint = endpoint
      klass
    end

    GetTextRequest     = request_class GetTextEndpoint
    GetMetadataRequest = request_class GetMetadataEndpoint

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tika-client-0.1.1 lib/tika/requests.rb