Class: Everypolitician::Popolo::Area
- Inherits:
-
Entity
- Object
- Entity
- Everypolitician::Popolo::Area
show all
- Defined in:
- lib/everypolitician/popolo/area.rb
Instance Attribute Summary
Attributes inherited from Entity
#document, #popolo
Instance Method Summary
collapse
Methods inherited from Entity
#==, #[], classification, #id, #identifier, inherited, #initialize, #key?, subclasses
Instance Method Details
#identifiers ⇒ Object
4
5
6
|
# File 'lib/everypolitician/popolo/area.rb', line 4
def identifiers
document.fetch(:identifiers, [])
end
|
#name ⇒ Object
8
9
10
|
# File 'lib/everypolitician/popolo/area.rb', line 8
def name
document.fetch(:name, nil)
end
|
#other_names ⇒ Object
12
13
14
|
# File 'lib/everypolitician/popolo/area.rb', line 12
def other_names
document.fetch(:other_names, [])
end
|
#type ⇒ Object
16
17
18
|
# File 'lib/everypolitician/popolo/area.rb', line 16
def type
document.fetch(:type, nil)
end
|
#wikidata ⇒ Object
20
21
22
|
# File 'lib/everypolitician/popolo/area.rb', line 20
def wikidata
identifier('wikidata')
end
|