class ABBYY::Cloud
Underlying Net::HTTP-based connection responds for sending requests and handling responses depending on their statuses.
It validates neither request's, no response's contents. Those are provided by [ABBYY::Cloud::Operation] and its subclasses.
The exception to be risen when arguments of the operation mismatches ABBYY
Cloud
API spec
The exception to be risen when ABBYY
Cloud
API responded with error status. It takes a raw Net::HTTPResponse and extracts all the data returned by API.
The exception to be risen when ABBYY
Cloud
API returned data that mismatches the specification
Base structure for models describing parts of requests and responses
The initializer accepts a hash with symbol/string keys, from which it takes and validates necessary options.
The method [#to_h] converts nested data to hash with symbolic keys at any level of nesting.
Base class for specific operations It validates request and response using corresponding models
@abstract
Emulates a source to ensure it has methods [#read] and [#path]
Container for settings, that is initialized by [ABBYY::Cloud#initializer] and then shared by namespaces and operations.
Attributes
Public Class Methods
# File lib/abbyy/cloud.rb, line 42 def initialize(*args) @settings ||= Settings.new(*args) end
Public Instance Methods
# File lib/abbyy/cloud.rb, line 36 def files Namespaces::Files.new(settings) end
# File lib/abbyy/cloud.rb, line 24 def mt Namespaces::MachineTranslations.new(settings) end
# File lib/abbyy/cloud.rb, line 28 def orders Namespaces::Orders.new(settings) end
# File lib/abbyy/cloud.rb, line 32 def prices Namespaces::Prices.new(settings) end