Class: WestpacApi::Endpoints::FetchUser

Inherits:
WestpacApi::Endpoint show all
Includes:
PartnerApi::Endpoints::Initializer
Defined in:
lib/westpac_api/endpoints/fetch_user.rb

Instance Method Summary collapse

Methods included from PartnerApi::Endpoints::Initializer

prepended

Methods inherited from PartnerApi::Endpoints::Base

#call

Constructor Details

#initialize(user_id:, context_reference_id:, correlation_id: SecureRandom.uuid, message_id: SecureRandom.uuid) ⇒ FetchUser

Returns a new instance of FetchUser.



8
9
10
11
12
13
# File 'lib/westpac_api/endpoints/fetch_user.rb', line 8

def initialize(user_id:, context_reference_id:, correlation_id: SecureRandom.uuid, message_id: SecureRandom.uuid)
  @user_id = user_id
  @context_reference_id = context_reference_id
  @correlation_id = correlation_id
  @message_id = message_id
end