Class: EveOnline::ESI::Models::Star

Inherits:
Base
  • Object
show all
Defined in:
lib/eve_online/esi/models/star.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

#ageObject



20
21
22
# File 'lib/eve_online/esi/models/star.rb', line 20

def age
  options["age"]
end

#as_jsonObject



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/eve_online/esi/models/star.rb', line 7

def as_json
  {
    age: age,
    luminosity: luminosity,
    name: name,
    radius: radius,
    solar_system_id: solar_system_id,
    spectral_class: spectral_class,
    temperature: temperature,
    type_id: type_id
  }
end

#luminosityObject



24
25
26
# File 'lib/eve_online/esi/models/star.rb', line 24

def luminosity
  options["luminosity"]
end

#nameObject



28
29
30
# File 'lib/eve_online/esi/models/star.rb', line 28

def name
  options["name"]
end

#radiusObject



32
33
34
# File 'lib/eve_online/esi/models/star.rb', line 32

def radius
  options["radius"]
end

#solar_system_idObject



36
37
38
# File 'lib/eve_online/esi/models/star.rb', line 36

def solar_system_id
  options["solar_system_id"]
end

#spectral_classObject



40
41
42
# File 'lib/eve_online/esi/models/star.rb', line 40

def spectral_class
  options["spectral_class"]
end

#temperatureObject



44
45
46
# File 'lib/eve_online/esi/models/star.rb', line 44

def temperature
  options["temperature"]
end

#type_idObject



48
49
50
# File 'lib/eve_online/esi/models/star.rb', line 48

def type_id
  options["type_id"]
end