Class: EveOnline::ESI::Models::Alliance
- Inherits:
-
Base
- Object
- Base
- EveOnline::ESI::Models::Alliance
show all
- Defined in:
- lib/eve_online/esi/models/alliance.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
|
# File 'lib/eve_online/esi/models/alliance.rb', line 7
def as_json
{
name: name,
ticker: ticker,
creator_id: creator_id,
creator_corporation_id: creator_corporation_id,
executor_corporation_id: executor_corporation_id,
date_founded: date_founded,
faction_id: faction_id
}
end
|
#creator_corporation_id ⇒ Object
31
32
33
|
# File 'lib/eve_online/esi/models/alliance.rb', line 31
def creator_corporation_id
options['creator_corporation_id']
end
|
#creator_id ⇒ Object
27
28
29
|
# File 'lib/eve_online/esi/models/alliance.rb', line 27
def creator_id
options['creator_id']
end
|
#date_founded ⇒ Object
39
40
41
42
43
|
# File 'lib/eve_online/esi/models/alliance.rb', line 39
def date_founded
date_founded = options['date_founded']
parse_datetime_with_timezone(date_founded) if date_founded
end
|
#executor_corporation_id ⇒ Object
35
36
37
|
# File 'lib/eve_online/esi/models/alliance.rb', line 35
def executor_corporation_id
options['executor_corporation_id']
end
|
#faction_id ⇒ Object
45
46
47
|
# File 'lib/eve_online/esi/models/alliance.rb', line 45
def faction_id
options['faction_id']
end
|
#name ⇒ Object
19
20
21
|
# File 'lib/eve_online/esi/models/alliance.rb', line 19
def name
options['name']
end
|
#ticker ⇒ Object
23
24
25
|
# File 'lib/eve_online/esi/models/alliance.rb', line 23
def ticker
options['ticker']
end
|