Class: CASino::ValidationResult

Inherits:
Struct
  • Object
show all
Defined in:
app/models/casino/validation_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#error_codeObject

Returns the value of attribute error_code

Returns:

  • (Object)

    the current value of error_code


1
2
3
# File 'app/models/casino/validation_result.rb', line 1

def error_code
  @error_code
end

#error_messageObject

Returns the value of attribute error_message

Returns:

  • (Object)

    the current value of error_message


1
2
3
# File 'app/models/casino/validation_result.rb', line 1

def error_message
  @error_message
end

#error_severityObject

Returns the value of attribute error_severity

Returns:

  • (Object)

    the current value of error_severity


1
2
3
# File 'app/models/casino/validation_result.rb', line 1

def error_severity
  @error_severity
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)

2
3
4
# File 'app/models/casino/validation_result.rb', line 2

def success?
  self.error_code.nil?
end