Class: EveOnline::ESI::Models::Alliance

Inherits:
Base
  • Object
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

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
# 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_idObject



19
20
21
# File 'lib/eve_online/esi/models/alliance.rb', line 19

def creator_corporation_id
  options["creator_corporation_id"]
end

#creator_idObject



23
24
25
# File 'lib/eve_online/esi/models/alliance.rb', line 23

def creator_id
  options["creator_id"]
end

#date_foundedObject



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_idObject



33
34
35
# File 'lib/eve_online/esi/models/alliance.rb', line 33

def executor_corporation_id
  options["executor_corporation_id"]
end

#faction_idObject



37
38
39
# File 'lib/eve_online/esi/models/alliance.rb', line 37

def faction_id
  options["faction_id"]
end

#nameObject



41
42
43
# File 'lib/eve_online/esi/models/alliance.rb', line 41

def name
  options["name"]
end

#tickerObject



45
46
47
# File 'lib/eve_online/esi/models/alliance.rb', line 45

def ticker
  options["ticker"]
end