Class: DuffelAPI::Services::WebhooksService::PingResult

Inherits:
Object
  • Object
show all
Defined in:
lib/duffel_api/services/webhooks_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_response) ⇒ PingResult

Returns a new instance of PingResult.



12
13
14
# File 'lib/duffel_api/services/webhooks_service.rb', line 12

def initialize(api_response)
  @api_response = api_response
end

Instance Attribute Details

#api_responseAPIResponse (readonly)

Returns the raw API response this resource originated from

Returns:



10
11
12
# File 'lib/duffel_api/services/webhooks_service.rb', line 10

def api_response
  @api_response
end

Instance Method Details

#succeededBoolean

Returns whether the ping was successful. This is always true, because if the ping fails, we raise an error.

Returns:

  • (Boolean)


20
21
22
# File 'lib/duffel_api/services/webhooks_service.rb', line 20

def succeeded
  true
end