Class: Attestor::Validations::Message
- Inherits:
-
String
- Object
- String
- Attestor::Validations::Message
- Defined in:
- lib/attestor/validations/message.rb
Instance Method Summary collapse
-
#initialize(value, object, options = {}) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(value, object, options = {}) ⇒ Message
Returns a new instance of Message.
10 11 12 13 14 15 16 |
# File 'lib/attestor/validations/message.rb', line 10 def initialize(value, object, = {}) @value = value @object = object @options = super(@value.instance_of?(Symbol) ? translation : @value.to_s) freeze end |