Class: PanStuff::Serializer::ValidationResponseSerializer

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/pan_stuff/serializer/validation_response_serializer.rb

Constant Summary

Constants included from Base

Base::TRANSFORMS_MAPPING

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Base

#as_json, #run_key_transform!, #to_h

Constructor Details

#initialize(resource, message = nil) ⇒ ValidationResponseSerializer

Returns a new instance of ValidationResponseSerializer.



10
11
12
13
# File 'lib/pan_stuff/serializer/validation_response_serializer.rb', line 10

def initialize(resource, message = nil)
  @resource             = resource
  @message              = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



8
9
10
# File 'lib/pan_stuff/serializer/validation_response_serializer.rb', line 8

def message
  @message
end