Class: Periskop::Client::Payload
- Inherits:
-
Object
- Object
- Periskop::Client::Payload
- Defined in:
- lib/periskop/client/models.rb
Overview
Payload represents the aggregated structure of errors
Instance Method Summary collapse
- #as_json(_options = {}) ⇒ Object
-
#initialize(aggregated_errors, target_uuid) ⇒ Payload
constructor
A new instance of Payload.
- #to_json(*options) ⇒ Object
Constructor Details
#initialize(aggregated_errors, target_uuid) ⇒ Payload
Returns a new instance of Payload.
156 157 158 159 |
# File 'lib/periskop/client/models.rb', line 156 def initialize(aggregated_errors, target_uuid) @aggregated_errors = aggregated_errors @target_uuid = target_uuid end |
Instance Method Details
#as_json(_options = {}) ⇒ Object
161 162 163 164 165 166 |
# File 'lib/periskop/client/models.rb', line 161 def as_json( = {}) { aggregated_errors: @aggregated_errors, target_uuid: @target_uuid } end |
#to_json(*options) ⇒ Object
168 169 170 |
# File 'lib/periskop/client/models.rb', line 168 def to_json(*) as_json(*).to_json(*) end |