Method: RelatonGb::GbBibliographicItem#initialize
- Defined in:
- lib/relaton_gb/gb_bibliographic_item.rb
#initialize(**args) ⇒ GbBibliographicItem
Returns a new instance of GbBibliographicItem.
32 33 34 35 36 37 38 39 |
# File 'lib/relaton_gb/gb_bibliographic_item.rb', line 32 def initialize(**args) super @committee = GbTechnicalCommittee.new(**args[:committee]) if args[:committee] @ccs = args[:ccs].map { |c| c.is_a?(Cnccs::Ccs) ? c : Cnccs.fetch(c) } @gbtype = GbStandardType.new(**args[:gbtype]) @gbplannumber = args[:gbplannumber] || structuredidentifier&.project_number end |