Sha256: f6392cf3039534384d2500115c544d0aa8c03b8a6dbec7f79226db156aba8dcd
Contents?: true
Size: 472 Bytes
Versions: 1
Compression:
Stored size: 472 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] 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ocrsdk-0.1.0 | lib/ocrsdk/verifiers/status.rb |