Coverage Report

File Lines Lines Of Code Untested Lines of Code Tested %
lib/ocrsdk/verifiers/profile.rb 15 7 0 100.0%
 
Legend
This line was executed.
This line was not executed!
This line doesn't matter.
 
1
module OCRSDK::Verifiers::Profile
24
2
  # http://ocrsdk.com/documentation/specifications/processing-profiles/
3
  PROFILES = [:document_conversion, :document_archiving, :text_extraction,
24
4
    :field_level_recognition, :barcode_recognition]
5

              
6
  def profile_to_s(profile)
24
7
    profile.to_s.camelize(:lower)
27
8
  end
9

              
10
  def supported_profile?(profile)
24
11
    profile = profile.underscore.to_sym  if profile.kind_of? String
105
12

              
13
    PROFILES.include? profile
105
14
  end
15
end

Generated on: 2012-12-01 01:40:30 +0400