Class: HookBridge::PullEndpoint
- Defined in:
- lib/hookbridge/types.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(data) ⇒ PullEndpoint
constructor
A new instance of PullEndpoint.
Methods inherited from BaseModel
#method_missing, #respond_to_missing?, #to_h
Constructor Details
#initialize(data) ⇒ PullEndpoint
Returns a new instance of PullEndpoint.
379 380 381 382 383 |
# File 'lib/hookbridge/types.rb', line 379 def initialize(data) attributes = (data || {}).dup attributes["counts"] = PullEndpointCounts.new(attributes["counts"]) if attributes["counts"].is_a?(Hash) super(attributes, time_fields: %w[created_at updated_at]) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HookBridge::BaseModel