Class: SimpleAuthSdk::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_auth_sdk/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_uriObject

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