Class: Pubid::Bsi::Identifiers::Amendment

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

Overview

Amendment Identifier Contains a base identifier plus amendment parameters

Instance Method Summary collapse

Instance Method Details

#base_documentObject

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



23
24
25
# File 'lib/pubid/bsi/identifiers/amendment.rb', line 23

def base_document
  base_identifier&.base_document || self
end

#drop_supplementsObject

Dropping the supplement layer yields the base standard.



28
29
30
# File 'lib/pubid/bsi/identifiers/amendment.rb', line 28

def drop_supplements
  base_identifier || self
end

#publisherObject



18
19
20
# File 'lib/pubid/bsi/identifiers/amendment.rb', line 18

def publisher
  base_identifier&.publisher
end

#supplement_numberObject



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

def supplement_number
  amendment_number
end

#supplement_typeObject

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



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

def supplement_type
  :amendment
end

#supplement_yearObject



42
43
44
# File 'lib/pubid/bsi/identifiers/amendment.rb', line 42

def supplement_year
  amendment_year
end