Class: HookBridge::PullEventSummary

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/hookbridge/types.rb

Instance Method Summary collapse

Methods inherited from BaseModel

#method_missing, #respond_to_missing?, #to_h

Constructor Details

#initialize(data) ⇒ PullEventSummary

Returns a new instance of PullEventSummary.



409
410
411
412
413
# File 'lib/hookbridge/types.rb', line 409

def initialize(data)
  attributes = (data || {}).dup
  attributes["timing"] = PullTimingBreakdown.new(attributes["timing"]) if attributes["timing"].is_a?(Hash)
  super(attributes, time_fields: %w[received_at fetched_at delivered_at deleted_at])
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class HookBridge::BaseModel