Class: Kameleoon::Network::AccessTokenSourceFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/kameleoon/network/access_token_source.rb

Instance Method Summary collapse

Constructor Details

#initialize(client_id, client_secret) ⇒ AccessTokenSourceFactory

Returns a new instance of AccessTokenSourceFactory.



140
141
142
143
144
145
146
147
148
149
150
151
# File 'lib/kameleoon/network/access_token_source.rb', line 140

def initialize(client_id, client_secret)
  Logging::KameleoonLogger.debug(lambda {
    format("CALL: AccessTokenSourceFactory.new(client_id: '%s', client_secret: '%s')",
           Utils::Strval.secret(client_id), Utils::Strval.secret(client_secret))
  })
  @client_id = client_id
  @client_secret = client_secret
  Logging::KameleoonLogger.debug(lambda {
    format("RETURN: AccessTokenSourceFactory.new(client_id: '%s', client_secret: '%s')",
           Utils::Strval.secret(client_id), Utils::Strval.secret(client_secret))
  })
end

Instance Method Details

#create(network_manager) ⇒ Object



153
154
155
# File 'lib/kameleoon/network/access_token_source.rb', line 153

def create(network_manager)
  AccessTokenSource.new(network_manager, @client_id, @client_secret)
end