Class: DuffelAPI::Services::WebhooksService::PingResult
- Inherits:
-
Object
- Object
- DuffelAPI::Services::WebhooksService::PingResult
- Defined in:
- lib/duffel_api/services/webhooks_service.rb
Instance Attribute Summary collapse
-
#api_response ⇒ APIResponse
readonly
Returns the raw API response this resource originated from.
Instance Method Summary collapse
-
#initialize(api_response) ⇒ PingResult
constructor
A new instance of PingResult.
-
#succeeded ⇒ Boolean
Returns whether the ping was successful.
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_response ⇒ APIResponse (readonly)
Returns the raw API response this resource originated from
10 11 12 |
# File 'lib/duffel_api/services/webhooks_service.rb', line 10 def api_response @api_response end |
Instance Method Details
#succeeded ⇒ Boolean
Returns whether the ping was successful. This is always true, because if the ping fails, we raise an error.
20 21 22 |
# File 'lib/duffel_api/services/webhooks_service.rb', line 20 def succeeded true end |