Class: KnoxCall::ClientCredentials
- Inherits:
-
Object
- Object
- KnoxCall::ClientCredentials
- Defined in:
- lib/knoxcall/bootstrap.rb
Instance Attribute Summary collapse
-
#client_id ⇒ Object
readonly
Returns the value of attribute client_id.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #client_secret ⇒ Object
-
#initialize(client_id:, client_secret:) ⇒ ClientCredentials
constructor
A new instance of ClientCredentials.
- #inspect ⇒ Object
Constructor Details
#initialize(client_id:, client_secret:) ⇒ ClientCredentials
Returns a new instance of ClientCredentials.
37 38 39 40 41 |
# File 'lib/knoxcall/bootstrap.rb', line 37 def initialize(client_id:, client_secret:) @client_id = client_id @client_secret = client_secret @type = "client_credentials" end |
Instance Attribute Details
#client_id ⇒ Object (readonly)
Returns the value of attribute client_id.
35 36 37 |
# File 'lib/knoxcall/bootstrap.rb', line 35 def client_id @client_id end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
35 36 37 |
# File 'lib/knoxcall/bootstrap.rb', line 35 def type @type end |
Instance Method Details
#client_secret ⇒ Object
43 |
# File 'lib/knoxcall/bootstrap.rb', line 43 def client_secret = @client_secret |
#inspect ⇒ Object
45 |
# File 'lib/knoxcall/bootstrap.rb', line 45 def inspect = "#<KnoxCall::ClientCredentials client_id=#{@client_id.inspect} client_secret=[REDACTED]>" |