Class: Pubid::Bsi::Identifiers::Method
- Inherits:
-
SingleIdentifier
- Object
- Lutaml::Model::Serializable
- Identifier
- SingleIdentifier
- Pubid::Bsi::Identifiers::Method
- Defined in:
- lib/pubid/bsi/identifiers/method.rb
Overview
BSI Method Examples:
-
Basic: “BS 2782-1:Method 131B:1983”
-
Range: “BS 2782-4:Methods 451F to 451J:1978”
-
And: “BS 2782-8:Methods 823A and 823B:1978”
Constant Summary collapse
- TYPED_STAGES =
[ Pubid::Components::TypedStage.new( code: :pubmethod, stage_code: :published, type_code: :method, abbr: ["Method", "Methods"], name: "Method", harmonized_stages: %w[60.00 60.60], ), ].freeze
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from SingleIdentifier
Methods included from Pubid::Bsi::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::Identifier
Class Method Details
.type ⇒ Object
28 29 30 |
# File 'lib/pubid/bsi/identifiers/method.rb', line 28 def self.type { key: :method, title: "Method", short: "Method" } end |
Instance Method Details
#to_s(lang: :en, lang_single: false) ⇒ Object
32 33 34 |
# File 'lib/pubid/bsi/identifiers/method.rb', line 32 def to_s(lang: :en, lang_single: false) render(format: :human, lang: lang, lang_single: lang_single) end |