Sha256: f4a428a68e2ef39cb24429f5c95333961da781d40972b94ce149ac0c3ce8eeab
Contents?: true
Size: 826 Bytes
Versions: 1
Compression:
Stored size: 826 Bytes
Contents
# frozen_string_literal: true class FolioClient # Manage holdings records in the Folio inventory class Holdings attr_accessor :client, :instance_id # @param client [FolioClient] the configured client # @param instance_id [String] the UUID of the instance to which the holdings records belongs def initialize(client, instance_id:) @client = client @instance_id = instance_id end # @param permanent_location_id [String] the UUID of the permanent location # @param holdings_type_id [String] the UUID of the holdings type def create(holdings_type_id:, permanent_location_id:) client.post("/holdings-storage/holdings", { instanceId: instance_id, permanentLocationId: permanent_location_id, holdingsTypeId: holdings_type_id }) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
folio_client-0.8.0 | lib/folio_client/holdings.rb |