Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

api_url and api_version are not recognized when using configure #46

Description

@jonaldomo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions