Exception: MHV::UserAccount::Errors::UserAccountError
- Inherits:
-
StandardError
- Object
- StandardError
- MHV::UserAccount::Errors::UserAccountError
show all
- Defined in:
- app/services/mhv/user_account/errors.rb
Instance Method Summary
collapse
Instance Method Details
#as_json ⇒ Object
7
8
9
|
# File 'app/services/mhv/user_account/errors.rb', line 7
def as_json
message.split(',').map { |m| { title: class_name, detail: m.strip } }
end
|
#class_name ⇒ Object
13
14
15
|
# File 'app/services/mhv/user_account/errors.rb', line 13
def class_name
self.class.name.demodulize.underscore.humanize
end
|