Class: FactPulse::Helpers::AFNORCredentials
- Inherits:
-
Object
- Object
- FactPulse::Helpers::AFNORCredentials
- Defined in:
- lib/factpulse/helpers/client.rb
Overview
Credentials AFNOR PDP pour le mode Zero-Trust. Ces credentials sont passés dans chaque requête et ne sont jamais stockés côté serveur.
Instance Attribute Summary collapse
-
#client_id ⇒ Object
readonly
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
readonly
Returns the value of attribute client_secret.
-
#flow_service_url ⇒ Object
readonly
Returns the value of attribute flow_service_url.
Instance Method Summary collapse
-
#initialize(client_id:, client_secret:, flow_service_url:) ⇒ AFNORCredentials
constructor
A new instance of AFNORCredentials.
- #to_h ⇒ Object
Constructor Details
#initialize(client_id:, client_secret:, flow_service_url:) ⇒ AFNORCredentials
Returns a new instance of AFNORCredentials.
24 25 26 |
# File 'lib/factpulse/helpers/client.rb', line 24 def initialize(client_id:, client_secret:, flow_service_url:) @client_id, @client_secret, @flow_service_url = client_id, client_secret, flow_service_url end |
Instance Attribute Details
#client_id ⇒ Object (readonly)
Returns the value of attribute client_id.
23 24 25 |
# File 'lib/factpulse/helpers/client.rb', line 23 def client_id @client_id end |
#client_secret ⇒ Object (readonly)
Returns the value of attribute client_secret.
23 24 25 |
# File 'lib/factpulse/helpers/client.rb', line 23 def client_secret @client_secret end |
#flow_service_url ⇒ Object (readonly)
Returns the value of attribute flow_service_url.
23 24 25 |
# File 'lib/factpulse/helpers/client.rb', line 23 def flow_service_url @flow_service_url end |
Instance Method Details
#to_h ⇒ Object
27 28 29 |
# File 'lib/factpulse/helpers/client.rb', line 27 def to_h { 'client_id' => @client_id, 'client_secret' => @client_secret, 'flow_service_url' => @flow_service_url } end |