Class: Pubid::Jcgm::Identifiers::Amendment
- Inherits:
-
SupplementIdentifier
- Object
- Lutaml::Model::Serializable
- Identifier
- Pubid::Jcgm::Identifier
- SingleIdentifier
- SupplementIdentifier
- Pubid::Jcgm::Identifiers::Amendment
- Defined in:
- lib/pubid/jcgm/identifiers/amendment.rb
Constant Summary collapse
- TYPED_STAGES =
[ Pubid::Components::TypedStage.new( code: :pubamd, stage_code: :published, type_code: :amendment, abbr: ["Amd"], name: "Amendment", harmonized_stages: %w[60.00 60.60], ), ].freeze
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from SupplementIdentifier
Methods inherited from SingleIdentifier
#language_portion, #number_portion, #publisher_portion
Methods inherited from Pubid::Jcgm::Identifier
Methods inherited from Identifier
#base_identifier, #eql?, #exclude, #hash, #initialize, #mr_number, #mr_number_with_part, #mr_part, #mr_publisher, #mr_type, #mr_year, #new_edition_of?, polymorphic_name, #render, #resolve_urn_generator, #root, #to_mr_string, #to_supplement_s, #to_urn, #urn_supplement_type, #urn_type_code
Constructor Details
This class inherits a constructor from Pubid::Identifier
Class Method Details
.type ⇒ Object
20 21 22 |
# File 'lib/pubid/jcgm/identifiers/amendment.rb', line 20 def self.type { key: :amendment, title: "Amendment", short: "Amd" } end |
Instance Method Details
#to_s(lang: :en, lang_single: false, with_edition: false, format: nil, stage_format_long: nil, with_date: nil) ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/pubid/jcgm/identifiers/amendment.rb', line 24 def to_s(lang: :en, lang_single: false, with_edition: false, format: nil, stage_format_long: nil, with_date: nil) result = base_identifier.to_s if base_identifier result += "/Amd" result += " #{iteration.value}" if iteration result += ":#{date}" if date result end |