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.



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

def initialize(api_response)
  @api_response = api_response
end

Instance Attribute Details

#api_responseObject (readonly)

Returns the value of attribute api_response.



7
8
9
# File 'lib/duffel_api/services/webhooks_service.rb', line 7

def api_response
  @api_response
end

Instance Method Details

#succeededObject

If we return a PingResult rather than an error, then that means that the action was successful.



15
16
17
# File 'lib/duffel_api/services/webhooks_service.rb', line 15

def succeeded
  true
end