Class: PiResources::Serializer::ValidationResponseSerializer
- Inherits:
-
Object
- Object
- PiResources::Serializer::ValidationResponseSerializer
- Includes:
- Base
- Defined in:
- lib/pi_resources/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.
13 14 15 16 |
# File 'lib/pi_resources/serializer/validation_response_serializer.rb', line 13 def initialize(resource, = nil) @resource = resource @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
11 12 13 |
# File 'lib/pi_resources/serializer/validation_response_serializer.rb', line 11 def @message end |