Class: Preservation::Client::VersionedApiService Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/preservation/client/versioned_api_service.rb

Overview

This class is abstract.

API calls to a versioned endpoint

Direct Known Subclasses

Catalog, Objects

Instance Method Summary collapse

Constructor Details

#initialize(connection:, api_version: DEFAULT_API_VERSION) ⇒ VersionedApiService

Returns a new instance of VersionedApiService.



7
8
9
10
# File 'lib/preservation/client/versioned_api_service.rb', line 7

def initialize(connection:, api_version: DEFAULT_API_VERSION)
  @connection = connection
  @api_version = api_version
end