Class: EveOnline::ESI::Models::EventDetails
- Inherits:
-
Base
- Object
- Base
- EveOnline::ESI::Models::EventDetails
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
Instance Method Details
#as_json ⇒ Object
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
|
#date ⇒ Object
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
|
#duration ⇒ Object
28
29
30
|
# File 'lib/eve_online/esi/models/event_details.rb', line 28
def duration
options["duration"]
end
|
#event_id ⇒ Object
32
33
34
|
# File 'lib/eve_online/esi/models/event_details.rb', line 32
def event_id
options["event_id"]
end
|
#event_response ⇒ Object
52
53
54
|
# File 'lib/eve_online/esi/models/event_details.rb', line 52
def event_response
options["response"]
end
|
#importance ⇒ Object
36
37
38
|
# File 'lib/eve_online/esi/models/event_details.rb', line 36
def importance
options["importance"]
end
|
#owner_id ⇒ Object
40
41
42
|
# File 'lib/eve_online/esi/models/event_details.rb', line 40
def owner_id
options["owner_id"]
end
|
#owner_name ⇒ Object
44
45
46
|
# File 'lib/eve_online/esi/models/event_details.rb', line 44
def owner_name
options["owner_name"]
end
|
#owner_type ⇒ Object
48
49
50
|
# File 'lib/eve_online/esi/models/event_details.rb', line 48
def owner_type
options["owner_type"]
end
|
#text ⇒ Object
56
57
58
|
# File 'lib/eve_online/esi/models/event_details.rb', line 56
def text
options["text"]
end
|
#title ⇒ Object
60
61
62
|
# File 'lib/eve_online/esi/models/event_details.rb', line 60
def title
options["title"]
end
|