Class: Periskop::Client::Payload

Inherits:
Object
  • Object
show all
Defined in:
lib/periskop/client/models.rb

Overview

Payload represents the aggregated structure of errors

Instance Method Summary collapse

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(_options = {})
  {
    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(*options)
  as_json(*options).to_json(*options)
end