Class: PhraseApp::RequestErrors::ValidationErrorMessage
- Inherits:
-
Object
- Object
- PhraseApp::RequestErrors::ValidationErrorMessage
- Defined in:
- lib/request_handler.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
Returns the value of attribute field.
-
#message ⇒ Object
Returns the value of attribute message.
-
#resource ⇒ Object
Returns the value of attribute resource.
Instance Method Summary collapse
Instance Attribute Details
#field ⇒ Object
Returns the value of attribute field.
34 35 36 |
# File 'lib/request_handler.rb', line 34 def field @field end |
#message ⇒ Object
Returns the value of attribute message.
34 35 36 |
# File 'lib/request_handler.rb', line 34 def @message end |
#resource ⇒ Object
Returns the value of attribute resource.
34 35 36 |
# File 'lib/request_handler.rb', line 34 def resource @resource end |
Instance Method Details
#to_s ⇒ Object
36 37 38 |
# File 'lib/request_handler.rb', line 36 def to_s return sprintf("\t[%s:%s] %s", self.resource, self.field, self.) end |