Class: Pubid::Ccsds::Identifiers::Corrigendum
- Inherits:
-
SupplementIdentifier
- Object
- Lutaml::Model::Serializable
- Base
- SupplementIdentifier
- Pubid::Ccsds::Identifiers::Corrigendum
- Defined in:
- lib/pubid/ccsds/identifiers/corrigendum.rb
Constant Summary collapse
- TYPED_STAGES =
CCSDS Corrigendum typed stage
[ Pubid::Components::TypedStage.new( abbr: ["Cor", "Corr"], stage_code: "published", type_code: "cor", ), ].freeze
Class Method Summary collapse
-
.type ⇒ Hash
Type information for this identifier class.
Instance Method Summary collapse
Methods inherited from SupplementIdentifier
Methods inherited from Base
#base_hash, #publisher, #to_urn
Class Method Details
.type ⇒ Hash
Type information for this identifier class
19 20 21 |
# File 'lib/pubid/ccsds/identifiers/corrigendum.rb', line 19 def self.type { key: :cor, title: "Corrigendum", short: "Cor" } end |
Instance Method Details
#==(other) ⇒ Object
30 31 32 33 34 35 |
# File 'lib/pubid/ccsds/identifiers/corrigendum.rb', line 30 def ==(other) return false unless other.is_a?(Corrigendum) base_identifier == other.base_identifier && cor_number == other.cor_number end |
#to_s ⇒ Object
25 26 27 28 |
# File 'lib/pubid/ccsds/identifiers/corrigendum.rb', line 25 def to_s base_str = base_identifier.to_s "#{base_str} Cor. #{cor_number}" end |