Class: EveOnline::ESI::Models::EventDetails

Inherits:
Base
  • Object
show all
Defined in:
lib/eve_online/esi/models/event_details.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
16
17
18
19
20
# File 'lib/eve_online/esi/models/event_details.rb', line 7

def as_json
  {
    date: date,
    duration: duration,
    event_id: event_id,
    importance: importance,
    owner_id: owner_id,
    owner_name: owner_name,
    owner_type: owner_type,
    event_response: event_response,
    text: text,
    title: title
  }
end

#dateObject



22
23
24
25
26
# File 'lib/eve_online/esi/models/event_details.rb', line 22

def date
  date = options["date"]

  parse_datetime_with_timezone(date) if date
end

#durationObject



28
29
30
# File 'lib/eve_online/esi/models/event_details.rb', line 28

def duration
  options["duration"]
end

#event_idObject



32
33
34
# File 'lib/eve_online/esi/models/event_details.rb', line 32

def event_id
  options["event_id"]
end

#event_responseObject



52
53
54
# File 'lib/eve_online/esi/models/event_details.rb', line 52

def event_response
  options["response"]
end

#importanceObject



36
37
38
# File 'lib/eve_online/esi/models/event_details.rb', line 36

def importance
  options["importance"]
end

#owner_idObject



40
41
42
# File 'lib/eve_online/esi/models/event_details.rb', line 40

def owner_id
  options["owner_id"]
end

#owner_nameObject



44
45
46
# File 'lib/eve_online/esi/models/event_details.rb', line 44

def owner_name
  options["owner_name"]
end

#owner_typeObject



48
49
50
# File 'lib/eve_online/esi/models/event_details.rb', line 48

def owner_type
  options["owner_type"]
end

#textObject



56
57
58
# File 'lib/eve_online/esi/models/event_details.rb', line 56

def text
  options["text"]
end

#titleObject



60
61
62
# File 'lib/eve_online/esi/models/event_details.rb', line 60

def title
  options["title"]
end