Class: EveOnline::ESI::Models::PlanetShort

Inherits:
Base
  • Object
show all
Defined in:
lib/eve_online/esi/models/planet_short.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
# File 'lib/eve_online/esi/models/planet_short.rb', line 7

def as_json
  {
    planet_id: planet_id
  }
end

#asteroid_belt_idsObject



17
18
19
# File 'lib/eve_online/esi/models/planet_short.rb', line 17

def asteroid_belt_ids
  options.fetch("asteroid_belts", [])
end

#moon_idsObject



21
22
23
# File 'lib/eve_online/esi/models/planet_short.rb', line 21

def moon_ids
  options.fetch("moons", [])
end

#planet_idObject



13
14
15
# File 'lib/eve_online/esi/models/planet_short.rb', line 13

def planet_id
  options["planet_id"]
end