Sha256: 96693d441012a2df21b41e50ddfe35a45f708b49c2e356f1064455dd1ad00e6d

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

class OCRSDK::AbstractEntity
  def initialize(application_id=nil, password=nil)
    @application_id = application_id || '' # Rails.configuration.ocrsdk.application_id
    @password       = password       || '' # Rails.configuration.ocrsdk.password

    @url = prepare_url @application_id, @password
  end

private

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ocrsdk-0.1.0 lib/ocrsdk/abstract_entity.rb