Class: KnoxCall::ClientCredentials

Inherits:
Object
  • Object
show all
Defined in:
lib/knoxcall/bootstrap.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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]>"