api_url and api_version are not recognized when using configure.
they are however when passing options into the client constructor. i am writing a mock validic service for testing and would like to override the api_url with the configure method in an initializer.
so this would override the api_url and api_version:
options = {
api_url: 'https://api.myurl.com',
api_version: 'v3',
access_token: 'ORGANIZATION_ACCESS_TOKEN',
organization_id: 'ORGANIZATION_ID'
}
client = Validic::Client.new(options)
but this would not, even though the docs would imply it would. additionally, it is how i would prefer to configure it.
Validic.configure do |config|
config.api_url = 'https://api.myurl.com'
config.api_version = 'v3'
config.access_token = 'ORGANIZATION_ACCESS_TOKEN'
config.organization_id = 'ORGANIZATION_ID'
end
api_url and api_version are not recognized when using configure.
they are however when passing options into the client constructor. i am writing a mock validic service for testing and would like to override the api_url with the configure method in an initializer.
so this would override the api_url and api_version:
but this would not, even though the docs would imply it would. additionally, it is how i would prefer to configure it.