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
{
creator_corporation_id: creator_corporation_id,
creator_id: creator_id,
date_founded: date_founded,
executor_corporation_id: executor_corporation_id,
faction_id: faction_id,
name: name,
ticker: ticker
}
end
|
#creator_corporation_id ⇒ Object
19
20
21
|
# File 'lib/eve_online/esi/models/alliance.rb', line 19
def creator_corporation_id
options["creator_corporation_id"]
end
|
#creator_id ⇒ Object
23
24
25
|
# File 'lib/eve_online/esi/models/alliance.rb', line 23
def creator_id
options["creator_id"]
end
|
#date_founded ⇒ Object
27
28
29
30
31
|
# File 'lib/eve_online/esi/models/alliance.rb', line 27
def date_founded
date_founded = options["date_founded"]
parse_datetime_with_timezone(date_founded) if date_founded
end
|
#executor_corporation_id ⇒ Object
33
34
35
|
# File 'lib/eve_online/esi/models/alliance.rb', line 33
def executor_corporation_id
options["executor_corporation_id"]
end
|
#faction_id ⇒ Object
37
38
39
|
# File 'lib/eve_online/esi/models/alliance.rb', line 37
def faction_id
options["faction_id"]
end
|
#name ⇒ Object
41
42
43
|
# File 'lib/eve_online/esi/models/alliance.rb', line 41
def name
options["name"]
end
|
#ticker ⇒ Object
45
46
47
|
# File 'lib/eve_online/esi/models/alliance.rb', line 45
def ticker
options["ticker"]
end
|