Class: Moov::Models::Components::PingResponse

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/pingresponse.rb

Overview

Response from pinging a webhook.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(webhook:, request_body_sent:, response_status_code:) ⇒ PingResponse

Returns a new instance of PingResponse.



23
24
25
26
27
# File 'lib/moov/models/components/pingresponse.rb', line 23

def initialize(webhook:, request_body_sent:, response_status_code:)
  @webhook = webhook
  @request_body_sent = request_body_sent
  @response_status_code = response_status_code
end

Instance Method Details

#==(other) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/moov/models/components/pingresponse.rb', line 30

def ==(other)
  return false unless other.is_a? self.class
  return false unless @webhook == other.webhook
  return false unless @request_body_sent == other.request_body_sent
  return false unless @response_status_code == other.response_status_code
  true
end