Class: Edoxen::DecisionMetadata

Inherits:
Lutaml::Model::Serializable
  • Object
show all
Includes:
BodyVocabularyHost
Defined in:
lib/edoxen/decision_metadata.rb,
sig/edoxen.rbs

Overview

Collection-level metadata: the title (string for default / single-language collections, or title_localized[] for multilingual), the meeting date, the source secretariat, per-language source PDFs, and the host venue.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from BodyVocabularyHost

#canonical_type_for, included

Instance Attribute Details

#cityString? (readonly)

Returns the value of attribute city.

Returns:

  • (String, nil)


185
186
187
# File 'sig/edoxen.rbs', line 185

def city
  @city
end

#country_codeString? (readonly)

Returns the value of attribute country_code.

Returns:

  • (String, nil)


186
187
188
# File 'sig/edoxen.rbs', line 186

def country_code
  @country_code
end

#dateDate? (readonly)

Returns the value of attribute date.

Returns:

  • (Date, nil)


182
183
184
# File 'sig/edoxen.rbs', line 182

def date
  @date
end

#meeting_urnString? (readonly)

Returns the value of attribute meeting_urn.

Returns:

  • (String, nil)


187
188
189
# File 'sig/edoxen.rbs', line 187

def meeting_urn
  @meeting_urn
end

#sourceString? (readonly)

Returns the value of attribute source.

Returns:

  • (String, nil)


183
184
185
# File 'sig/edoxen.rbs', line 183

def source
  @source
end

#source_urlsArray[SourceUrl]? (readonly)

Returns the value of attribute source_urls.

Returns:



184
185
186
# File 'sig/edoxen.rbs', line 184

def source_urls
  @source_urls
end

#titleString? (readonly)

Returns the value of attribute title.

Returns:

  • (String, nil)


181
182
183
# File 'sig/edoxen.rbs', line 181

def title
  @title
end

Instance Method Details

#city_entryObject

Returns:

  • (Object)


23
24
25
26
27
# File 'lib/edoxen/decision_metadata.rb', line 23

def city_entry
  return nil if city.nil? || city.to_s.empty?

  Edoxen::ReferenceData.find_unlocode(city)
end