Class: Pubid::Iec::Identifier::WorkingDocument
- Inherits:
-
Core::Identifier::Base
- Object
- Core::Identifier::Base
- Pubid::Iec::Identifier::WorkingDocument
- Extended by:
- Forwardable
- Defined in:
- lib/pubid/iec/identifier/working_document.rb
Constant Summary collapse
- STAGES =
%w[ACDV ACD ADTR ADTS AFDIS APUB BPUB CAN CDM CCDV CDISH CDVM CFDIS CDPAS CDTR CDTS DTRM DTSM DECDISH DECFDIS DECPUB DELPUB DEL NCDV NDTR NDTS NFDIS PCC PNW PPUB PRVC PRVDISH PRVDPAS PRVDTR PRVDTS PRVD PRVN PWI RDISH RFDIS RPUB TCDV TDISH TDTR TDTS TPUB WPUB AC CC CDV CD DA DV DC DISH DL DPAS DTR DTS FDIS INF MTG NP QP Q RM RQ RR RVC RVDISH RVDTR RVDTS RVD RVN RV R SBP].freeze
Instance Attribute Summary collapse
-
#technical_committee ⇒ Object
Returns the value of attribute technical_committee.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(publisher: "IEC", technical_committee: nil, stage: nil, **args) ⇒ WorkingDocument
constructor
A new instance of WorkingDocument.
- #renderer_data ⇒ Object
- #urn ⇒ Object
Constructor Details
#initialize(publisher: "IEC", technical_committee: nil, stage: nil, **args) ⇒ WorkingDocument
Returns a new instance of WorkingDocument.
18 19 20 21 22 |
# File 'lib/pubid/iec/identifier/working_document.rb', line 18 def initialize(publisher: "IEC", technical_committee: nil, stage: nil, **args) super(**args.merge(publisher: publisher)) @stage = stage @technical_committee = technical_committee end |
Instance Attribute Details
#technical_committee ⇒ Object
Returns the value of attribute technical_committee.
16 17 18 |
# File 'lib/pubid/iec/identifier/working_document.rb', line 16 def technical_committee @technical_committee end |
Class Method Details
.get_parser_class ⇒ Object
33 34 35 |
# File 'lib/pubid/iec/identifier/working_document.rb', line 33 def get_parser_class WorkingDocumentParser end |
.get_renderer_class ⇒ Object
37 38 39 |
# File 'lib/pubid/iec/identifier/working_document.rb', line 37 def get_renderer_class Renderer::WorkingDocument end |
Instance Method Details
#renderer_data ⇒ Object
28 29 30 |
# File 'lib/pubid/iec/identifier/working_document.rb', line 28 def renderer_data to_h(deep: false) end |
#urn ⇒ Object
24 25 26 |
# File 'lib/pubid/iec/identifier/working_document.rb', line 24 def urn Renderer::WorkingDocumentUrn.new(renderer_data).render end |