Exception: RESTFramework::UnserializableError
- Defined in:
- lib/rest_framework/errors.rb
Instance Method Summary collapse
-
#initialize(object) ⇒ UnserializableError
constructor
A new instance of UnserializableError.
- #message ⇒ Object
Constructor Details
#initialize(object) ⇒ UnserializableError
Returns a new instance of UnserializableError.
20 21 22 23 |
# File 'lib/rest_framework/errors.rb', line 20 def initialize(object) @object = object return super end |
Instance Method Details
#message ⇒ Object
25 26 27 |
# File 'lib/rest_framework/errors.rb', line 25 def return "Unable to serialize `#{@object.inspect}` (of type `#{@object.class}`)." end |