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