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