Class: Pubid::Bsi::Identifiers::Corrigendum

Inherits:
SingleIdentifier
  • Object
show all
Defined in:
lib/pubid/bsi/identifiers/corrigendum.rb

Overview

Corrigendum Identifier Contains a base identifier plus corrigendum parameters

Instance Method Summary collapse

Instance Method Details

#base_documentObject

Base document = the standard this corrigendum applies to, fully peeled.



19
20
21
# File 'lib/pubid/bsi/identifiers/corrigendum.rb', line 19

def base_document
  base_identifier&.base_document || self
end

#drop_supplementsObject

Dropping the supplement layer yields the base standard.



24
25
26
# File 'lib/pubid/bsi/identifiers/corrigendum.rb', line 24

def drop_supplements
  base_identifier || self
end

#publisherObject



14
15
16
# File 'lib/pubid/bsi/identifiers/corrigendum.rb', line 14

def publisher
  base_identifier&.publisher
end

#supplement_numberObject



34
35
36
# File 'lib/pubid/bsi/identifiers/corrigendum.rb', line 34

def supplement_number
  corrigendum_number
end

#supplement_typeObject

Uniform supplement interface (shared with Amendment) so callers need not special-case the class.



30
31
32
# File 'lib/pubid/bsi/identifiers/corrigendum.rb', line 30

def supplement_type
  :corrigendum
end

#supplement_yearObject



38
39
40
# File 'lib/pubid/bsi/identifiers/corrigendum.rb', line 38

def supplement_year
  corrigendum_year
end