Exception: Nanite::Serializer::SerializationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/nanite/serializer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action, packet) ⇒ SerializationError

Returns a new instance of SerializationError.



6
7
8
9
# File 'lib/nanite/serializer.rb', line 6

def initialize(action, packet)
  @action, @packet = action, packet
  super("Could not #{action} #{packet.inspect} using #{SERIALIZERS.keys.join(', ')}")
end

Instance Attribute Details

#actionObject

Returns the value of attribute action.



5
6
7
# File 'lib/nanite/serializer.rb', line 5

def action
  @action
end

#packetObject

Returns the value of attribute packet.



5
6
7
# File 'lib/nanite/serializer.rb', line 5

def packet
  @packet
end