Method: IsoBibItem::Series#initialize

Defined in:
lib/iso_bib_item/series.rb

#initialize(**args) ⇒ Series

Returns a new instance of Series.

Parameters:

  • **args (Hash)

    <description>



38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/iso_bib_item/series.rb', line 38

def initialize(**args)
  unless args[:title].is_a? IsoBibItem::FormattedString
    raise ArgumentError, 'Parametr `title` shoud present'
  end
  @type         = args[:type] if %w[main alt].include? args[:type]
  @title        = args[:title]
  @place        = args[:place]
  @organization = args[:organization]
  @abbreviation = args[:abbreviation]
  @from         = args[:from]
  @to           = args[:to]
  @number       = args[:number]
  @part_number  = args[:part_number]
end