Class: Pubid::Iso::Amendment
- Inherits:
-
Supplement
- Object
- Core::Supplement
- Supplement
- Pubid::Iso::Amendment
- Defined in:
- lib/pubid/iso/amendment.rb
Instance Attribute Summary
Attributes inherited from Supplement
#edition, #iteration, #publisher, #typed_stage
Instance Method Summary collapse
Methods inherited from Supplement
#<=>, #initialize, #render_iteration, #render_pubid_number, #render_pubid_stage, #render_urn_number, #render_urn_stage
Constructor Details
This class inherits a constructor from Pubid::Iso::Supplement
Instance Method Details
#render_pubid(stage_format_long = true, with_date = true) ⇒ Object
5 6 7 8 9 |
# File 'lib/pubid/iso/amendment.rb', line 5 def render_pubid(stage_format_long = true, with_date = true) pubid_number = render_pubid_number(with_date: with_date) "/#{@typed_stage.to_s(stage_format_long)} #{pubid_number}" end |
#render_urn ⇒ Object
11 12 13 |
# File 'lib/pubid/iso/amendment.rb', line 11 def render_urn "#{render_urn_stage}:amd#{render_urn_number}" end |