Class: SimpleAuthSdk::Configuration
- Inherits:
-
Object
- Object
- SimpleAuthSdk::Configuration
- Defined in:
- lib/simple_auth_sdk/configuration.rb
Instance Attribute Summary collapse
-
#base_uri ⇒ Object
Returns the value of attribute base_uri.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
-
#validate! ⇒ Object
Validate that base_uri is set.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 |
# File 'lib/simple_auth_sdk/configuration.rb', line 7 def initialize # No default value for base_uri @base_uri = nil end |
Instance Attribute Details
#base_uri ⇒ Object
Returns the value of attribute base_uri.
5 6 7 |
# File 'lib/simple_auth_sdk/configuration.rb', line 5 def base_uri @base_uri end |
Instance Method Details
#validate! ⇒ Object
Validate that base_uri is set
13 14 15 |
# File 'lib/simple_auth_sdk/configuration.rb', line 13 def validate! raise 'Base URI must be configured' if @base_uri.nil? || @base_uri.empty? end |