Class: Dennis::ValidationErrorDetail
- Inherits:
-
Object
- Object
- Dennis::ValidationErrorDetail
- Defined in:
- lib/dennis/validation_error_detail.rb
Instance Method Summary collapse
- #attribute ⇒ Object
-
#initialize(hash) ⇒ ValidationErrorDetail
constructor
A new instance of ValidationErrorDetail.
- #message ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(hash) ⇒ ValidationErrorDetail
Returns a new instance of ValidationErrorDetail.
6 7 8 |
# File 'lib/dennis/validation_error_detail.rb', line 6 def initialize(hash) @hash = hash end |
Instance Method Details
#attribute ⇒ Object
10 11 12 |
# File 'lib/dennis/validation_error_detail.rb', line 10 def attribute @hash['attribute'] end |
#message ⇒ Object
18 19 20 |
# File 'lib/dennis/validation_error_detail.rb', line 18 def @hash['message'] end |
#type ⇒ Object
14 15 16 |
# File 'lib/dennis/validation_error_detail.rb', line 14 def type @hash['type'] end |