class Itly::ValidationResponse

Contains the result of a validation

valid: [True/False] indicating if the validation succeeded or failed plugin_id: [String] an id identifying your plugin message: [String] the message you want to appear in the logs in case of error

Attributes

message[R]
plugin_id[R]
valid[R]

Public Class Methods

new(valid:, plugin_id:, message: '') click to toggle source

Create a new ValidationResponse object

# File lib/itly/validation_response.rb, line 17
def initialize(valid:, plugin_id:, message: '')
  @valid = valid
  @plugin_id = plugin_id
  @message = message
end

Public Instance Methods

inspect() click to toggle source

Inspect the object

@return [String] the object description

# File lib/itly/validation_response.rb, line 37
def inspect
  to_s
end
to_s() click to toggle source

Describe the object

@return [String] the object description

# File lib/itly/validation_response.rb, line 28
def to_s
  "#<#{self.class.name}: valid: #{valid}, plugin_id: #{plugin_id}, message: #{message}>"
end