Class: Preservation::Client::VersionedApiService Abstract
- Inherits:
-
Object
- Object
- Preservation::Client::VersionedApiService
- Defined in:
- lib/preservation/client/versioned_api_service.rb
Overview
This class is abstract.
API calls to a versioned endpoint
Instance Method Summary collapse
-
#initialize(connection:, api_version: DEFAULT_API_VERSION) ⇒ VersionedApiService
constructor
A new instance of VersionedApiService.
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 |