Exception: ActiveModel::Pusher::RecordSerializer::RecordCannotBeSerializedError
- Inherits:
-
StandardError
- Object
- StandardError
- ActiveModel::Pusher::RecordSerializer::RecordCannotBeSerializedError
- Defined in:
- lib/active_model/pusher/record_serializer.rb
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(record) ⇒ RecordCannotBeSerializedError
constructor
A new instance of RecordCannotBeSerializedError.
- #to_s ⇒ Object
Constructor Details
#initialize(record) ⇒ RecordCannotBeSerializedError
Returns a new instance of RecordCannotBeSerializedError.
7 8 9 |
# File 'lib/active_model/pusher/record_serializer.rb', line 7 def initialize(record) @record = record end |
Instance Attribute Details
#record ⇒ Object (readonly)
Returns the value of attribute record.
5 6 7 |
# File 'lib/active_model/pusher/record_serializer.rb', line 5 def record @record end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/active_model/pusher/record_serializer.rb', line 11 def to_s "#{@record} cannot be serialized." end |