Module: Rev

Defined in:
lib/rev-api/api.rb,
lib/rev-api.rb,
lib/rev-api/version.rb,
lib/rev-api/exceptions.rb,
lib/rev-api/http_client.rb,
lib/rev-api/models/order.rb,
lib/rev-api/api_serializable.rb,
lib/rev-api/models/order_request.rb

Overview

Rev API Ruby SDK

Defined Under Namespace

Modules: InputRequestErrorCodes, OrderRequestErrorCodes Classes: Api, ApiError, ApiSerializable, Attachment, BadRequestError, BillingAddress, CaptionInfo, CaptionOptions, Comment, ForbiddenError, HttpClient, Input, InputOptions, Link, NotAcceptableError, NotAuthorizedError, NotFoundError, Notification, Order, OrderRequest, OrdersListPage, Payment, ServerError, TranscriptionInfo, TranscriptionOptions, UnknownError

Constant Summary collapse

VERSION =
'2.5.0'
GLOSSARY_ENTRIES_LIMIT =

OrderRequest is used for constructing order ‘spec’ in consumer code and passing it into. It consists of three main elements: :payment, :transcription_options and :notification. You can also supply reference number and whether standard turnaround time is not required

1000
GLOSSARY_ENTRY_LENGTH_LIMIT =
255
SPEAKER_ENTRIES_LIMIT =
100
SPEAKER_ENTRY_LENGTH_LIMIT =
15

Class Method Summary collapse

Class Method Details

.method_missing(method, *args, &block) ⇒ Object

Delegate to Rev::Api



17
18
19
20
# File 'lib/rev-api.rb', line 17

def method_missing(method, *args, &block)
  return super unless new.respond_to?(method)
  new.send(method, *args, &block)
end

.new(client_api_key, user_api_key, host = Rev::Api::PRODUCTION_HOST) ⇒ Rev::Api

Alias for Rev::Api.new

Returns:



11
12
13
# File 'lib/rev-api.rb', line 11

def new(client_api_key, user_api_key, host = Rev::Api::PRODUCTION_HOST)
  Rev::Api.new(client_api_key, user_api_key, host)
end

.respond_to?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/rev-api.rb', line 22

def respond_to?(method, include_private = false)
  new.respond_to?(method, include_private) || super(method, include_private)
end