Class: Pubid::Nist::Identifiers::Report
- Inherits:
-
Base
- Object
- Lutaml::Model::Serializable
- Identifier
- Base
- Pubid::Nist::Identifiers::Report
- Defined in:
- lib/pubid/nist/identifiers/report.rb
Overview
NBS RPT (Report) Identifier Examples:
-
“NBS RPT 8079” - Basic report
-
“NBS RPT 9350sup” - Report with supplement
-
“NBS RPT Oct-Dec1950” - Report with date range
-
“NBS RPT ADHOC” - Ad hoc report
-
“NBS RPT div9” - Division report
-
“NBS RPT 4817-A” - Report with letter suffix
Constant Summary collapse
- TYPED_STAGES =
[ Pubid::Components::TypedStage.new( abbr: ["RPT", "NBS RPT"], stage_code: "published", type_code: "rpt", ), ].freeze
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
#edition_greater?, #extract_edition_number, #initialize, #language, #merge, #publisher, #revision, #translation, #weight
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::Nist::Identifiers::Base
Class Method Details
.type ⇒ Object
28 29 30 |
# File 'lib/pubid/nist/identifiers/report.rb', line 28 def type { key: :rpt, title: "NBS Report", short: "RPT" } end |
.typed_stages ⇒ Object
24 25 26 |
# File 'lib/pubid/nist/identifiers/report.rb', line 24 def typed_stages TYPED_STAGES end |
Instance Method Details
#default_publisher ⇒ Object
33 34 35 |
# File 'lib/pubid/nist/identifiers/report.rb', line 33 def default_publisher "NBS" end |
#series_code ⇒ Object
37 38 39 |
# File 'lib/pubid/nist/identifiers/report.rb', line 37 def series_code "RPT" end |
#to_s(format = :short) ⇒ Object
41 42 43 44 45 46 47 48 |
# File 'lib/pubid/nist/identifiers/report.rb', line 41 def to_s(format = :short) case format when :mr to_mr_style else to_short_style end end |