Class: Pubid::Iso::Identifier::Directives
- Inherits:
-
Base
- Object
- Core::Identifier::Base
- Base
- Pubid::Iso::Identifier::Directives
show all
- Defined in:
- lib/pubid/iso/identifier/directives.rb
Constant Summary
collapse
- TYPED_STAGES =
{}.freeze
Instance Attribute Summary collapse
Attributes inherited from Base
#addendum, #base, #dirtype, #iteration, #joint_document, #jtc_dir, #month, #scnumber, #sctype, #stage, #supplements, #tcnumber, #tctype, #wgnumber, #wgtype
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
create_supplements, get_amendment_class, get_corrigendum_class, get_identifier, get_parser_class, get_transformer_class, get_update_codes, #render_all_parts, #resolve_format, #root, supplement_by_type, supplements_has_type?, #to_s, transform, transform_supplements, type_match?
Constructor Details
#initialize(edition_publisher: nil, **opts) ⇒ Directives
13
14
15
16
|
# File 'lib/pubid/iso/identifier/directives.rb', line 13
def initialize(edition_publisher: nil, **opts)
super(**opts)
@edition_publisher = edition_publisher
end
|
Instance Attribute Details
#edition_publisher ⇒ Object
Returns the value of attribute edition_publisher.
11
12
13
|
# File 'lib/pubid/iso/identifier/directives.rb', line 11
def edition_publisher
@edition_publisher
end
|
Class Method Details
.get_renderer_class ⇒ Object
22
23
24
|
# File 'lib/pubid/iso/identifier/directives.rb', line 22
def self.get_renderer_class
Renderer::Dir
end
|
.type ⇒ Object
18
19
20
|
# File 'lib/pubid/iso/identifier/directives.rb', line 18
def self.type
{ key: :dir, title: "Directives", short: "DIR" }
end
|
Instance Method Details
#render_joint_document(joint_document) ⇒ Object
30
31
32
33
|
# File 'lib/pubid/iso/identifier/directives.rb', line 30
def render_joint_document(joint_document)
"#{@joint_document}".sub(" DIR", "")
end
|
#urn ⇒ Object
26
27
28
|
# File 'lib/pubid/iso/identifier/directives.rb', line 26
def urn
Renderer::UrnDir.new(to_h(deep: false)).render
end
|