Class: PanStuff::Serializer::ValidationResponseSerializer
- Inherits:
-
Object
- Object
- PanStuff::Serializer::ValidationResponseSerializer
- Includes:
- Base
- Defined in:
- lib/pan_stuff/serializer/validation_response_serializer.rb
Constant Summary
Constants included from Base
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(resource, message = nil) ⇒ ValidationResponseSerializer
constructor
A new instance of ValidationResponseSerializer.
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, = nil) @resource = resource @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
8 9 10 |
# File 'lib/pan_stuff/serializer/validation_response_serializer.rb', line 8 def @message end |