Class: Pubid::Itu::Components::Designation
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Pubid::Itu::Components::Designation
- Defined in:
- lib/pubid/itu/components/designation.rb
Overview
One series+number designation of a combined (joint) recommendation. A combined recommendation such as "ITU-T G.780/Y.1351" keeps its primary designation on the base identifier (series "G", code "780") and carries each additional designation ("Y.1351", and any further "/Z.1362" …) as a Designation in Identifiers::CombinedIdentifier#combined.
Format: SERIES.CODE (e.g. "Y.1351", "Y.1362-2")
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object
27 28 29 30 31 |
# File 'lib/pubid/itu/components/designation.rb', line 27 def ==(other) return false unless other.is_a?(Designation) series == other.series && code == other.code end |
#render(context: nil) ⇒ Object
23 24 25 |
# File 'lib/pubid/itu/components/designation.rb', line 23 def render(context: nil) to_s end |
#to_s ⇒ Object
19 20 21 |
# File 'lib/pubid/itu/components/designation.rb', line 19 def to_s "#{series}.#{code}" end |