Class: FactPulse::Helpers::ChorusProCredentials
- Inherits:
-
Object
- Object
- FactPulse::Helpers::ChorusProCredentials
- Defined in:
- lib/factpulse/helpers/client.rb
Overview
Credentials Chorus Pro 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
-
#chorus_pro_login ⇒ Object
readonly
Returns the value of attribute chorus_pro_login.
-
#chorus_pro_password ⇒ Object
readonly
Returns the value of attribute chorus_pro_password.
-
#piste_client_id ⇒ Object
readonly
Returns the value of attribute piste_client_id.
-
#piste_client_secret ⇒ Object
readonly
Returns the value of attribute piste_client_secret.
-
#sandbox ⇒ Object
readonly
Returns the value of attribute sandbox.
Instance Method Summary collapse
-
#initialize(piste_client_id:, piste_client_secret:, chorus_pro_login:, chorus_pro_password:, sandbox: true) ⇒ ChorusProCredentials
constructor
A new instance of ChorusProCredentials.
- #to_h ⇒ Object
Constructor Details
#initialize(piste_client_id:, piste_client_secret:, chorus_pro_login:, chorus_pro_password:, sandbox: true) ⇒ ChorusProCredentials
Returns a new instance of ChorusProCredentials.
10 11 12 13 |
# File 'lib/factpulse/helpers/client.rb', line 10 def initialize(piste_client_id:, piste_client_secret:, chorus_pro_login:, chorus_pro_password:, sandbox: true) @piste_client_id, @piste_client_secret = piste_client_id, piste_client_secret @chorus_pro_login, @chorus_pro_password, @sandbox = chorus_pro_login, chorus_pro_password, sandbox end |
Instance Attribute Details
#chorus_pro_login ⇒ Object (readonly)
Returns the value of attribute chorus_pro_login.
9 10 11 |
# File 'lib/factpulse/helpers/client.rb', line 9 def chorus_pro_login @chorus_pro_login end |
#chorus_pro_password ⇒ Object (readonly)
Returns the value of attribute chorus_pro_password.
9 10 11 |
# File 'lib/factpulse/helpers/client.rb', line 9 def chorus_pro_password @chorus_pro_password end |
#piste_client_id ⇒ Object (readonly)
Returns the value of attribute piste_client_id.
9 10 11 |
# File 'lib/factpulse/helpers/client.rb', line 9 def piste_client_id @piste_client_id end |
#piste_client_secret ⇒ Object (readonly)
Returns the value of attribute piste_client_secret.
9 10 11 |
# File 'lib/factpulse/helpers/client.rb', line 9 def piste_client_secret @piste_client_secret end |
#sandbox ⇒ Object (readonly)
Returns the value of attribute sandbox.
9 10 11 |
# File 'lib/factpulse/helpers/client.rb', line 9 def sandbox @sandbox end |
Instance Method Details
#to_h ⇒ Object
14 15 16 17 |
# File 'lib/factpulse/helpers/client.rb', line 14 def to_h { 'piste_client_id' => @piste_client_id, 'piste_client_secret' => @piste_client_secret, 'chorus_pro_login' => @chorus_pro_login, 'chorus_pro_password' => @chorus_pro_password, 'sandbox' => @sandbox } end |