Class: Pago::V2026_04::Models::EventsIngestResponse
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary collapse
- JSON_KEYS =
{ inserted: "inserted", duplicates: "duplicates" }.freeze
- REQUIRED_KEYS =
["inserted"].freeze
Instance Attribute Summary collapse
-
#duplicates ⇒ Integer
readonly
Number of duplicate events skipped.
-
#inserted ⇒ Integer
readonly
Number of events inserted.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(inserted:, duplicates: ::Pago::UNSET) ⇒ EventsIngestResponse
constructor
A new instance of EventsIngestResponse.
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
#initialize(inserted:, duplicates: ::Pago::UNSET) ⇒ EventsIngestResponse
Returns a new instance of EventsIngestResponse.
25352 25353 25354 25355 25356 25357 25358 25359 |
# File 'lib/pago/v2026_04/models.rb', line 25352 def initialize( inserted:, duplicates: ::Pago::UNSET ) super() assign(:inserted, inserted) assign(:duplicates, duplicates) end |
Instance Attribute Details
#duplicates ⇒ Integer (readonly)
Number of duplicate events skipped.
25350 25351 25352 |
# File 'lib/pago/v2026_04/models.rb', line 25350 def duplicates @duplicates end |
#inserted ⇒ Integer (readonly)
Number of events inserted.
25346 25347 25348 |
# File 'lib/pago/v2026_04/models.rb', line 25346 def inserted @inserted end |
Class Method Details
.from_json(data) ⇒ EventsIngestResponse?
25363 25364 25365 25366 25367 25368 25369 25370 25371 25372 25373 25374 25375 |
# File 'lib/pago/v2026_04/models.rb', line 25363 def self.from_json(data) data = ::JSON.parse(data) if data.is_a?(String) data = ::Pago::Serde.object(data) return nil if data.nil? wrap_raw( new( inserted: (data.key?("inserted") ? data["inserted"] : ::Pago::UNSET), duplicates: (data.key?("duplicates") ? data["duplicates"] : ::Pago::UNSET) ), data ) end |