Class: DataDomeResponse
- Inherits:
-
Object
- Object
- DataDomeResponse
- Defined in:
- lib/model/api/response.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(action, status) ⇒ DataDomeResponse
constructor
A new instance of DataDomeResponse.
- #to_json(options = {}) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(action, status) ⇒ DataDomeResponse
Returns a new instance of DataDomeResponse.
26 27 28 29 |
# File 'lib/model/api/response.rb', line 26 def initialize(action, status) @action = action @status = status end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
24 25 26 |
# File 'lib/model/api/response.rb', line 24 def action @action end |
#status ⇒ Object
Returns the value of attribute status.
24 25 26 |
# File 'lib/model/api/response.rb', line 24 def status @status end |
Instance Method Details
#to_json(options = {}) ⇒ Object
35 36 37 38 39 40 |
# File 'lib/model/api/response.rb', line 35 def to_json( = {}) { action: @action, status: @status, }.to_json end |
#to_s ⇒ Object
31 32 33 |
# File 'lib/model/api/response.rb', line 31 def to_s "DataDomeResponse: action=#{@action}, status=#{@status}" end |