class Deliver::AppScreenshotValidator::ValidationError
A simple structure that holds error information as well as formatted error messages consistently Set `to_skip` to `true` when just needing to skip uploading rather than causing a crash.
Constants
- FILE_EXTENSION_MISMATCH
- INVALID_FILE_EXTENSION
- INVALID_SCREEN_SIZE
Constants that can be given to `type` param
- UNACCEPTABLE_DEVICE
Attributes
debug_info[R]
path[R]
to_skip[R]
type[R]
Public Class Methods
new(type: nil, path: nil, debug_info: nil, to_skip: false)
click to toggle source
# File deliver/lib/deliver/app_screenshot_validator.rb, line 16 def initialize(type: nil, path: nil, debug_info: nil, to_skip: false) @type = type @path = path @debug_info = debug_info @to_skip = to_skip end
Public Instance Methods
inspect()
click to toggle source
# File deliver/lib/deliver/app_screenshot_validator.rb, line 27 def inspect "\"#{type}\"" end
to_s()
click to toggle source
# File deliver/lib/deliver/app_screenshot_validator.rb, line 23 def to_s "#{to_skip ? '🏃 Skipping' : '🚫 Error'}: #{path} - #{type} (#{debug_info})" end