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
Constants inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
#==, #append_mr_components, #append_short_components, #edition_greater?, #exclude, #extract_edition_number, #hash, #initialize, #language, #matches?, #merge, #publisher_abbreviated_name, #publisher_full_name, #render, #revision, #series_abbreviated_name, #series_full_name, #supplement_short, #to_abbreviated_style, #to_full_style, #translation, #weight
Methods included from Pubid::Nist::Identifier
Methods included from IdentifierFacade
#from_hash, #polymorphic_type_map
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, #year
Constructor Details
This class inherits a constructor from Pubid::Nist::Identifiers::Base
Class Method Details
.type ⇒ Object
28 29 30 31 |
# File 'lib/pubid/nist/identifiers/report.rb', line 28 def type { key: :rpt, web: :report, 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
34 35 36 |
# File 'lib/pubid/nist/identifiers/report.rb', line 34 def default_publisher "NBS" end |
#series_code ⇒ Object
38 39 40 |
# File 'lib/pubid/nist/identifiers/report.rb', line 38 def series_code "RPT" end |
#to_s(format = :short) ⇒ Object
42 43 44 45 46 47 48 49 |
# File 'lib/pubid/nist/identifiers/report.rb', line 42 def to_s(format = :short) case format when :mr to_mr_style else to_short_style end end |