Sha256: c64653cc5c2029aa910e89ae45855ba2843efea3965a64c44626039f6fc23168

Contents?: true

Size: 267 Bytes

Versions: 5

Compression:

Stored size: 267 Bytes

Contents

class OCRSDK::AbstractEntity
  def initialize
    @url = prepare_url OCRSDK.config.application_id, OCRSDK.config.password
  end

private

  def prepare_url(app_id, pass)
    URI("http://#{CGI.escape app_id}:#{CGI.escape pass}@#{OCRSDK.config.service_url}")
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ocrsdk-0.3.4 lib/ocrsdk/abstract_entity.rb
ocrsdk-0.3.3 lib/ocrsdk/abstract_entity.rb
ocrsdk-0.3.2 lib/ocrsdk/abstract_entity.rb
ocrsdk-0.3.1 lib/ocrsdk/abstract_entity.rb
ocrsdk-0.3.0 lib/ocrsdk/abstract_entity.rb