Class: Zaala::API::FieldViolation
- Inherits:
-
Object
- Object
- Zaala::API::FieldViolation
- Defined in:
- lib/zaala/api/error.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#field ⇒ Object
readonly
Returns the value of attribute field.
Instance Method Summary collapse
-
#initialize(field, description) ⇒ FieldViolation
constructor
A new instance of FieldViolation.
Constructor Details
#initialize(field, description) ⇒ FieldViolation
Returns a new instance of FieldViolation.
7 8 9 10 |
# File 'lib/zaala/api/error.rb', line 7 def initialize(field, description) @field = field @description = description end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
5 6 7 |
# File 'lib/zaala/api/error.rb', line 5 def description @description end |
#field ⇒ Object (readonly)
Returns the value of attribute field.
5 6 7 |
# File 'lib/zaala/api/error.rb', line 5 def field @field end |