Class: Pubid::Bsi::Identifiers::Amendment
- Inherits:
-
SingleIdentifier
- Object
- Pubid::Bsi::Identifiers::Amendment
- Defined in:
- lib/pubid/bsi/identifiers/amendment.rb
Overview
Amendment Identifier Contains a base identifier plus amendment parameters
Instance Method Summary collapse
-
#base_document ⇒ Object
Base document = the standard this amendment applies to, fully peeled.
-
#drop_supplements ⇒ Object
Dropping the supplement layer yields the base standard.
- #publisher ⇒ Object
- #supplement_number ⇒ Object
-
#supplement_type ⇒ Object
Uniform supplement interface (shared with Corrigendum) so callers need not special-case the class.
- #supplement_year ⇒ Object
Instance Method Details
#base_document ⇒ Object
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_supplements ⇒ Object
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 |
#publisher ⇒ Object
18 19 20 |
# File 'lib/pubid/bsi/identifiers/amendment.rb', line 18 def publisher base_identifier&.publisher end |
#supplement_number ⇒ Object
38 39 40 |
# File 'lib/pubid/bsi/identifiers/amendment.rb', line 38 def supplement_number amendment_number end |
#supplement_type ⇒ Object
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_year ⇒ Object
42 43 44 |
# File 'lib/pubid/bsi/identifiers/amendment.rb', line 42 def supplement_year amendment_year end |