Class: BnzApi::Endpoints::FetchIdToken
- Inherits:
-
BnzApi::Endpoint
- Object
- PartnerApi::Endpoints::Base
- BnzApi::Endpoint
- BnzApi::Endpoints::FetchIdToken
- Includes:
- PartnerApi::Endpoints::Initializer
- Defined in:
- lib/bnz_api/endpoints/fetch_id_token.rb
Instance Method Summary collapse
-
#initialize(auth_code:, redirect_uri:, client_id:, request_id: SecureRandom.uuid) ⇒ FetchIdToken
constructor
A new instance of FetchIdToken.
- #override_data(auth_code:, redirect_uri:, client_id:, request_id: SecureRandom.uuid) ⇒ Object
Methods included from PartnerApi::Endpoints::Initializer
Methods inherited from PartnerApi::Endpoints::Base
Constructor Details
#initialize(auth_code:, redirect_uri:, client_id:, request_id: SecureRandom.uuid) ⇒ FetchIdToken
Returns a new instance of FetchIdToken.
8 9 10 11 12 13 |
# File 'lib/bnz_api/endpoints/fetch_id_token.rb', line 8 def initialize(auth_code:, redirect_uri:, client_id:, request_id: SecureRandom.uuid) @auth_code = auth_code @redirect_uri = redirect_uri @client_id = client_id @request_id = request_id end |
Instance Method Details
#override_data(auth_code:, redirect_uri:, client_id:, request_id: SecureRandom.uuid) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/bnz_api/endpoints/fetch_id_token.rb', line 15 def override_data(auth_code:, redirect_uri:, client_id:, request_id: SecureRandom.uuid) @auth_code = auth_code @redirect_uri = redirect_uri @client_id = client_id @request_id = request_id end |