Sha256: 56e7b7c5ccc119684c887f8469ca140907da2084031d921b142d9e35c2086b71
Contents?: true
Size: 612 Bytes
Versions: 4
Compression:
Stored size: 612 Bytes
Contents
require 'cgi' module CRP class ResultMapper # Maps the CRP result codes to a human readable message. def self.to_message(code) case code when 1 "Approved" when 2 "Updated" when 3 "Denied" when 31 "Deletion requested" when 32 "Underaged" when 33 "Angry customer" when 34 "Commercial" when 61 "G-rated" when 62 "Sexual" when 63 "Explicit" when 64 "Hardcore" when 99 "Irrelevant" else "" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
crp-0.0.5 | lib/crp/result_mapper.rb |
crp-0.0.4 | lib/crp/result_mapper.rb |
crp-0.0.3 | lib/crp/result_mapper.rb |
crp-0.0.2 | lib/crp/result_mapper.rb |