Class: Pubid::Bsi::Identifier::NationalAnnex

Inherits:
Base
  • Object
show all
Defined in:
lib/pubid/bsi/identifier/national_annex.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#adopted, #month, #pdf, #supplement, #tracked_changes, #translation

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

get_parser_class, get_transformer_class, transform, transform_expert_commentary, transform_hash, transform_national_annex

Constructor Details

#initialize(base: nil, **opts) ⇒ NationalAnnex

Returns a new instance of NationalAnnex.



8
9
10
11
12
# File 'lib/pubid/bsi/identifier/national_annex.rb', line 8

def initialize(base: nil, **opts)

  super(**opts)
  @base = base
end

Instance Attribute Details

#baseObject

Returns the value of attribute base.



4
5
6
# File 'lib/pubid/bsi/identifier/national_annex.rb', line 4

def base
  @base
end

Class Method Details

.get_renderer_classObject



18
19
20
# File 'lib/pubid/bsi/identifier/national_annex.rb', line 18

def self.get_renderer_class
  Renderer::NationalAnnex
end

.typeObject



14
15
16
# File 'lib/pubid/bsi/identifier/national_annex.rb', line 14

def self.type
  { key: :na, title: "National Annex", short: "NA" }
end