Class: HookBridge::PullEventDetail
- Defined in:
- lib/hookbridge/types.rb
Instance Method Summary collapse
-
#initialize(data) ⇒ PullEventDetail
constructor
A new instance of PullEventDetail.
Methods inherited from BaseModel
#method_missing, #respond_to_missing?, #to_h
Constructor Details
#initialize(data) ⇒ PullEventDetail
Returns a new instance of PullEventDetail.
417 418 419 420 421 |
# File 'lib/hookbridge/types.rb', line 417 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