Class: Pumi::DataSource::NCDD::Row

Inherits:
Struct
  • Object
show all
Defined in:
lib/pumi/data_source/ncdd.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



27
28
29
# File 'lib/pumi/data_source/ncdd.rb', line 27

def code
  @code
end

#name_kmObject

Returns the value of attribute name_km

Returns:

  • (Object)

    the current value of name_km



27
28
29
# File 'lib/pumi/data_source/ncdd.rb', line 27

def name_km
  @name_km
end

#name_latinObject

Returns the value of attribute name_latin

Returns:

  • (Object)

    the current value of name_latin



27
28
29
# File 'lib/pumi/data_source/ncdd.rb', line 27

def name_latin
  @name_latin
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



27
28
29
# File 'lib/pumi/data_source/ncdd.rb', line 27

def type
  @type
end

Instance Method Details

#administrative_unitObject



28
29
30
# File 'lib/pumi/data_source/ncdd.rb', line 28

def administrative_unit
  ADMINISTRATIVE_UNITS.fetch(type)
end