Class: Pubid::Ieee::Identifiers::Nesc::Standard
- Inherits:
-
Base
- Object
- Lutaml::Model::Serializable
- Base
- Pubid::Ieee::Identifiers::Nesc::Standard
- Defined in:
- lib/pubid/ieee/identifiers/nesc/standard.rb
Overview
Standard NESC identifier with C2-YYYY format
Represents the standard National Electrical Safety Code publications using the C2 designation followed by publication year.
Instance Method Summary collapse
-
#to_s ⇒ String
Render standard NESC identifier.
Methods inherited from Base
Instance Method Details
#to_s ⇒ String
Render standard NESC identifier
19 20 21 |
# File 'lib/pubid/ieee/identifiers/nesc/standard.rb', line 19 def to_s "C2-#{year.year} National Electrical Safety Code" end |