Class: 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
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 |