Sha256: d45d8eee5f176a3ef6b4c720d89fe825d45e3cc86b10c69f919bd17ab895c8ba
Contents?: true
Size: 479 Bytes
Versions: 8
Compression:
Stored size: 479 Bytes
Contents
module OCRSDK::Verifiers::Status # http://ocrsdk.com/documentation/specifications/task-statuses/ STATUSES = [:submitted, :queued, :in_progress, :completed, :processing_failed, :deleted, :not_enough_credits].freeze def status_to_s(status) status.to_s.camelize end def status_to_sym(status) status.underscore.to_sym end def supported_status?(status) status = status_to_sym status if status.kind_of? String STATUSES.include? status end end
Version data entries
8 entries across 8 versions & 1 rubygems