Class: EveOnline::ESI::Models::Event

Inherits:
Base
  • Object
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

Constructor Details

This class inherits a constructor from EveOnline::ESI::Models::Base

Instance Method Details

#as_jsonObject



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_dateObject



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_idObject



17
18
19
# File 'lib/eve_online/esi/models/event.rb', line 17

def event_id
  options['event_id']
end

#event_responseObject



35
36
37
# File 'lib/eve_online/esi/models/event.rb', line 35

def event_response
  options['event_response']
end

#importanceObject



31
32
33
# File 'lib/eve_online/esi/models/event.rb', line 31

def importance
  options['importance']
end

#titleObject



27
28
29
# File 'lib/eve_online/esi/models/event.rb', line 27

def title
  options['title']
end