class ISOCodes::Language
Attributes
alpha2[R]
ISO 639-1 identifier for the language, or nil
if none is defined.
alpha3_bibliographic[R]
ISO 639-2 identifier of the bibliographic applications code set for the language, or nil
if none is defined.
alpha3_terminology[R]
ISO 639-2 identifier of the terminology applications code set for the language, or nil
if none is defined.
identifier[R]
ISO 639-3 identifier for the language, or nil
if none is defined.
language_type[R]
Language
type for the language. Language
type is either :living
, :extinct
, :ancient
, :historic
, :constructed
, or :special
. See www.sil.org/iso639-3/types.asp for a description.
reference_name[R]
Reference name for the language.
Public Class Methods
new(identifier, part2b, part2t, part1, language_type, ref_name)
click to toggle source
# File lib/iso_codes.rb, line 34 def initialize(identifier, part2b, part2t, part1, language_type, ref_name) @identifier = identifier @alpha3_bibliographic = part2b == '' ? nil : part2b @alpha3_terminology = part2t == '' ? nil : part2t @alpha2 = part1 == '' ? nil : part1 @language_type = language_type @reference_name = ref_name end