Module: Infosimples::Data

Defined in:
lib/infosimples/data.rb,
lib/infosimples/data/code.rb,
lib/infosimples/data/http.rb,
lib/infosimples/data/client.rb,
lib/infosimples/data/errors.rb,
lib/infosimples/data/version.rb,
lib/infosimples/data/symmetric_encryption.rb

Defined Under Namespace

Classes: ArgumentError, Client, Error, HTTP, SymmetricEncryption, Timeout

Constant Summary collapse

CODE =
{
  # success
  single_result:          200,
  multiple_results:       201,

  # error
  unexpected_error:       600,
  unauthorized:           601,
  invalid_service:        602,
  forbidden:              603,
  invalid_request:        604,
  timeout:                605,
  empty_parameters:       606,
  invalid_parameters:     607,
  refused_parameters:     608,
  attempts_exceeded:      609,
  failed_captcha:         610,
  incomplete_data:        611,
  inexistent:             612,
  blocked_request:        613,
  try_again:              614,
  source_unavailable:     615,
  source_error:           616,
  service_overloaded:     617,
  rate_limit_exceeded:    618,
  converted_parameters:   619,
  permanent_error:        620,
  receipt_error:          621,
}
VERSION =
"1.9.9"
USER_AGENT =
"Infosimples::Data/Ruby v#{VERSION}"

Class Method Summary collapse

Class Method Details

.new(token, args = {}) ⇒ Object


10
11
12
# File 'lib/infosimples/data.rb', line 10

def self.new(token, args = {})
  Infosimples::Data::Client.new(token, args)
end