Class: IapAuthenticator::Configuration
- Inherits:
-
Object
- Object
- IapAuthenticator::Configuration
- Defined in:
- lib/iap_authenticator/configuration.rb
Instance Method Summary collapse
- #client_id ⇒ Object
- #client_id=(client_id) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #logger ⇒ Object
- #logger=(log_handler) ⇒ Object
- #refresh_time_seconds ⇒ Object
- #refresh_time_seconds=(refresh_time_seconds) ⇒ Object
- #service_account_credentials_path ⇒ Object
- #service_account_credentials_path=(service_account_credentials_path) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
3 4 5 |
# File 'lib/iap_authenticator/configuration.rb', line 3 def initialize @configuration = OpenStruct.new end |
Instance Method Details
#client_id ⇒ Object
15 16 17 |
# File 'lib/iap_authenticator/configuration.rb', line 15 def client_id @configuration.client_id end |
#client_id=(client_id) ⇒ Object
19 20 21 |
# File 'lib/iap_authenticator/configuration.rb', line 19 def client_id=(client_id) @configuration.client_id = client_id end |
#logger ⇒ Object
35 36 37 |
# File 'lib/iap_authenticator/configuration.rb', line 35 def logger @logger ||= Ougai::Logger.new(STDOUT) end |
#logger=(log_handler) ⇒ Object
31 32 33 |
# File 'lib/iap_authenticator/configuration.rb', line 31 def logger=(log_handler) @logger = log_handler end |
#refresh_time_seconds ⇒ Object
23 24 25 |
# File 'lib/iap_authenticator/configuration.rb', line 23 def refresh_time_seconds @configuration.refresh_time_seconds ||= 3600 end |
#refresh_time_seconds=(refresh_time_seconds) ⇒ Object
27 28 29 |
# File 'lib/iap_authenticator/configuration.rb', line 27 def refresh_time_seconds=(refresh_time_seconds) @refresh_time_seconds = refresh_time_seconds.to_i end |
#service_account_credentials_path ⇒ Object
7 8 9 |
# File 'lib/iap_authenticator/configuration.rb', line 7 def service_account_credentials_path @configuration.service_account_credentials_path end |
#service_account_credentials_path=(service_account_credentials_path) ⇒ Object
11 12 13 |
# File 'lib/iap_authenticator/configuration.rb', line 11 def service_account_credentials_path=(service_account_credentials_path) @configuration.service_account_credentials_path = service_account_credentials_path end |