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_date: event_date,
    event_id: event_id,
    event_response: event_response,
    importance: importance,
    title: title
  }
end

#event_dateObject



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

def event_date
  event_date = options["event_date"]

  parse_datetime_with_timezone(event_date) if event_date
end

#event_idObject



23
24
25
# File 'lib/eve_online/esi/models/event.rb', line 23

def event_id
  options["event_id"]
end

#event_responseObject



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

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



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

def title
  options["title"]
end