Exception: ActiveModel::Pusher::RecordSerializer::RecordCannotBeSerializedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/active_model/pusher/record_serializer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#recordObject (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_sObject



11
12
13
# File 'lib/active_model/pusher/record_serializer.rb', line 11

def to_s
  "#{@record} cannot be serialized."
end