= BSI publication identifiers ("BSI PubID")
== Purpose
This gem implements a mechanism to parse and utilize BSI publication identifiers.
== Use cases to support
. generate updated PubID
== Usage
=== Identifier creation
Basic usage of the pubid-bsi gem starts with the Identifier#create
method.
require "pubid-bsi"
pubid = Pubid::Bsi::Identifier.create(number: 1234, part: 1, year: 1999) pubid.to_s
=== With document type
pubid = Pubid::Bsi::Identifier.create(type: :pas, number: 1234) pubid.to_s
=== Identifier's class and type
Identifier#parse
resolves a parsed identifier according to the type.
Pubid::Iso::Identifier.parse("PAS 1234").class
Pubid::Iso::Identifier.parse("PAS 1234").type
Pubid::Iso::Identifier.parse("BS 1234").class
Pubid::Iso::Identifier.parse("BS 1234").type