Class: Everypolitician::Popolo::Event
- Inherits:
-
Entity
- Object
- Entity
- Everypolitician::Popolo::Event
show all
- Defined in:
- lib/everypolitician/popolo/event.rb
Instance Attribute Summary
Attributes inherited from Entity
#document, #popolo
Instance Method Summary
collapse
Methods inherited from Entity
#==, #[], classification, #id, #identifier, #identifiers, inherited, #initialize, #key?, subclasses, #wikidata
Instance Method Details
#classification ⇒ Object
21
22
23
|
# File 'lib/everypolitician/popolo/event.rb', line 21
def classification
document.fetch(:classification, nil)
end
|
#end_date ⇒ Object
13
14
15
|
# File 'lib/everypolitician/popolo/event.rb', line 13
def end_date
document.fetch(:end_date, nil)
end
|
#name ⇒ Object
17
18
19
|
# File 'lib/everypolitician/popolo/event.rb', line 17
def name
document.fetch(:name, nil)
end
|
#organization_id ⇒ Object
25
26
27
|
# File 'lib/everypolitician/popolo/event.rb', line 25
def organization_id
document.fetch(:organization_id, nil)
end
|
#start_date ⇒ Object
9
10
11
|
# File 'lib/everypolitician/popolo/event.rb', line 9
def start_date
document.fetch(:start_date, nil)
end
|