class GdsApi::Search
def initialize(endpoint_url, options = {})
def initialize(endpoint_url, options = {}) super # The API version provides a simple wrapper around this base class so that we # can still access the shared methods present in this class. version = options.fetch(:api_version, DEFAULT_API_VERSION) api_class = API_VERSIONS[version] || raise(UnknownAPIVersion) @api = api_class.new(self) end