Class: Api::ResponseBuilder::Messages
- Defined in:
- lib/api/response_builder/messages.rb
Overview
Class which helps in building messges for api response
Instance Attribute Summary collapse
-
#messages ⇒ Object
Returns the value of attribute messages.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(resource, config = {}) ⇒ Messages
constructor
A new instance of Messages.
Constructor Details
#initialize(resource, config = {}) ⇒ Messages
Returns a new instance of Messages.
8 9 10 11 12 |
# File 'lib/api/response_builder/messages.rb', line 8 def initialize(resource, config = {}) super(resource, config) @messages = {} end |
Instance Attribute Details
#messages ⇒ Object
Returns the value of attribute messages.
6 7 8 |
# File 'lib/api/response_builder/messages.rb', line 6 def @messages end |