Exception: CoronaPresenceTracing::ValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/corona_presence_tracing/validator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(check_in, attr, error, message) ⇒ ValidationError

Returns a new instance of ValidationError.



7
8
9
10
11
12
# File 'lib/corona_presence_tracing/validator.rb', line 7

def initialize(check_in, attr, error, message)
  @check_in = check_in
  @attr = attr
  @error = error
  super(message)
end

Instance Attribute Details

#attrObject (readonly)

Returns the value of attribute attr.



5
6
7
# File 'lib/corona_presence_tracing/validator.rb', line 5

def attr
  @attr
end

#check_inObject (readonly)

Returns the value of attribute check_in.



5
6
7
# File 'lib/corona_presence_tracing/validator.rb', line 5

def check_in
  @check_in
end

#errorObject (readonly)

Returns the value of attribute error.



5
6
7
# File 'lib/corona_presence_tracing/validator.rb', line 5

def error
  @error
end