Class: AirbridgeDeeplink::Configuration
- Inherits:
-
Object
- Object
- AirbridgeDeeplink::Configuration
- Defined in:
- lib/airbridge_deeplink/configuration.rb
Instance Attribute Summary collapse
-
#api_token ⇒ Object
Returns the value of attribute api_token.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #validate! ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 |
# File 'lib/airbridge_deeplink/configuration.rb', line 7 def initialize @api_token = nil @base_url = 'https://api.airbridge.io/v1' @timeout = 30 end |
Instance Attribute Details
#api_token ⇒ Object
Returns the value of attribute api_token.
5 6 7 |
# File 'lib/airbridge_deeplink/configuration.rb', line 5 def api_token @api_token end |
#base_url ⇒ Object
Returns the value of attribute base_url.
5 6 7 |
# File 'lib/airbridge_deeplink/configuration.rb', line 5 def base_url @base_url end |
#timeout ⇒ Object
Returns the value of attribute timeout.
5 6 7 |
# File 'lib/airbridge_deeplink/configuration.rb', line 5 def timeout @timeout end |
Instance Method Details
#validate! ⇒ Object
13 14 15 |
# File 'lib/airbridge_deeplink/configuration.rb', line 13 def validate! raise ConfigurationError, 'API token is required' if api_token.blank? end |