Class: Pubid::Jis::Identifiers::Amendment

Inherits:
SupplementIdentifier show all
Defined in:
lib/pubid/jis/identifiers/amendment.rb

Overview

Amendment identifier type Format: Identifier#base/AMD number:Identifier#year Example: JIS A 0001:1999/AMD 1:2000

Constant Summary

Constants inherited from SingleIdentifier

SingleIdentifier::TYPE_CLASSES

Constants inherited from Pubid::Jis::Identifier

Pubid::Jis::Identifier::JIS_TYPE_MAP, Pubid::Jis::Identifier::PUBLISHER

Instance Attribute Summary

Attributes inherited from SingleIdentifier

#with_publisher

Instance Method Summary collapse

Methods inherited from SupplementIdentifier

#==, #code, #to_s

Methods inherited from SingleIdentifier

identifier_class_for_type, #to_s

Methods inherited from Pubid::Jis::Identifier

#==, #all_parts?, #code, #mr_all_parts, #mr_languages, #mr_number_with_part, #mr_publisher, #mr_type, #mr_year, parse, #reaffirmed?, #symbol_suffix, #to_s, #year_with_reaffirmation

Methods inherited from Identifier

apply_mappings, #base, #base_document, concrete_class_for, #dated_version_of?, #draft_of?, #drop_supplements, #edition_of?, #eql?, #exclude, from_hash, #has_supplement?, #hash, #includes?, #initialize, #matches?, #mr_all_parts, #mr_edition, #mr_languages, #mr_number, #mr_number_with_part, #mr_part, #mr_publisher, #mr_subpart, #mr_supplement_suffix, #mr_type, #mr_year, #new_edition_of?, polymorphic_name, polymorphic_type_map, #related_to?, #render, #resolve_urn_generator, #root, #sibling_of?, #supplement_of?, #to_hash, #to_mr_string, #to_s, #to_slug, #to_supplement_s, #to_urn, #urn_supplement_type, #urn_type_code, #year

Constructor Details

This class inherits a constructor from Pubid::Identifier

Instance Method Details

#supplement_notationObject



10
11
12
# File 'lib/pubid/jis/identifiers/amendment.rb', line 10

def supplement_notation
  "AMD #{number}:#{year_with_reaffirmation}"
end