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



31
32
33
# File 'lib/eve_online/esi/models/alliance.rb', line 31

def creator_corporation_id
  options['creator_corporation_id']
end

#creator_idObject



27
28
29
# File 'lib/eve_online/esi/models/alliance.rb', line 27

def creator_id
  options['creator_id']
end

#date_foundedObject



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_idObject



35
36
37
# File 'lib/eve_online/esi/models/alliance.rb', line 35

def executor_corporation_id
  options['executor_corporation_id']
end

#faction_idObject



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

def faction_id
  options['faction_id']
end

#nameObject



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

def name
  options['name']
end

#tickerObject



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

def ticker
  options['ticker']
end