Class: EveOnline::ESI::Models::Fatigue
- Inherits:
-
Base
- Object
- Base
- EveOnline::ESI::Models::Fatigue
show all
- Defined in:
- lib/eve_online/esi/models/fatigue.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
|
# File 'lib/eve_online/esi/models/fatigue.rb', line 7
def as_json
{
jump_fatigue_expire_date: jump_fatigue_expire_date,
last_jump_date: last_jump_date,
last_update_date: last_update_date
}
end
|
#jump_fatigue_expire_date ⇒ Object
15
16
17
18
19
|
# File 'lib/eve_online/esi/models/fatigue.rb', line 15
def jump_fatigue_expire_date
jump_fatigue_expire_date = options['jump_fatigue_expire_date']
parse_datetime_with_timezone(jump_fatigue_expire_date) if jump_fatigue_expire_date
end
|
#last_jump_date ⇒ Object
21
22
23
24
25
|
# File 'lib/eve_online/esi/models/fatigue.rb', line 21
def last_jump_date
last_jump_date = options['last_jump_date']
parse_datetime_with_timezone(last_jump_date) if last_jump_date
end
|
#last_update_date ⇒ Object
27
28
29
30
31
|
# File 'lib/eve_online/esi/models/fatigue.rb', line 27
def last_update_date
last_update_date = options['last_update_date']
parse_datetime_with_timezone(last_update_date) if last_update_date
end
|