Class: Pubid::Itu::Identifier::Annex

Inherits:
Supplement
  • Object
show all
Defined in:
lib/pubid/itu/identifier/annex.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#amendment, #annex, #date, #range, #second_number, #sector, #series, #subseries

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Supplement

#to_h

Methods inherited from Base

get_parser_class, get_renderer_class, get_transformer_class, has_type?, #to_s, transform, transform_supplements

Constructor Details

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

Returns a new instance of Annex.



8
9
10
11
# File 'lib/pubid/itu/identifier/annex.rb', line 8

def initialize(base: nil, **opts)
  super(**opts)
  @base = base
end

Instance Attribute Details

#baseObject

Returns the value of attribute base.



6
7
8
# File 'lib/pubid/itu/identifier/annex.rb', line 6

def base
  @base
end

Class Method Details

.typeObject



13
14
15
# File 'lib/pubid/itu/identifier/annex.rb', line 13

def self.type
  { key: :annex, title: "Annex" }
end