Class: EveOnline::ESI::Models::Event
- Inherits:
-
Base
- Object
- Base
- EveOnline::ESI::Models::Event
show all
- Defined in:
- lib/eve_online/esi/models/event.rb
Instance Attribute Summary
Attributes inherited from Base
#options
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#as_json ⇒ Object
7
8
9
10
11
12
13
14
15
|
# File 'lib/eve_online/esi/models/event.rb', line 7
def as_json
{
event_id: event_id,
event_date: event_date,
title: title,
importance: importance,
event_response: event_response
}
end
|
#event_date ⇒ Object
21
22
23
24
25
|
# File 'lib/eve_online/esi/models/event.rb', line 21
def event_date
event_date = options['event_date']
parse_datetime_with_timezone(event_date) if event_date
end
|
#event_id ⇒ Object
17
18
19
|
# File 'lib/eve_online/esi/models/event.rb', line 17
def event_id
options['event_id']
end
|
#event_response ⇒ Object
35
36
37
|
# File 'lib/eve_online/esi/models/event.rb', line 35
def event_response
options['event_response']
end
|
#importance ⇒ Object
31
32
33
|
# File 'lib/eve_online/esi/models/event.rb', line 31
def importance
options['importance']
end
|
#title ⇒ Object
27
28
29
|
# File 'lib/eve_online/esi/models/event.rb', line 27
def title
options['title']
end
|