Class: Pubid::Oiml::Identifiers::Annex

Inherits:
SupplementIdentifier show all
Defined in:
lib/pubid/oiml/identifiers/annex.rb

Constant Summary

Constants inherited from Pubid::Oiml::Identifier

Pubid::Oiml::Identifier::OIML_TYPE_MAP

Instance Attribute Summary

Attributes inherited from SupplementIdentifier

#requested_format

Instance Method Summary collapse

Methods inherited from SupplementIdentifier

#base_identifier_from_kv, #base_identifier_to_kv

Methods inherited from Pubid::Oiml::Identifier

from_hash, #to_urn

Instance Method Details

#supplement_typeObject



18
19
20
# File 'lib/pubid/oiml/identifiers/annex.rb', line 18

def supplement_type
  letter ? "Annex #{letter}" : "Annexes"
end

#to_s(format: nil, **opts) ⇒ Object



22
23
24
25
# File 'lib/pubid/oiml/identifiers/annex.rb', line 22

def to_s(format: nil, **opts)
  @requested_format = format
  render(format: :human, **opts)
end