Class: EveApp::SolarSystem

Inherits:
ApplicationRecord show all
Defined in:
app/models/eve_app/solar_system.rb

Constant Summary collapse

JITA =
30000142
PERIMITER =
30000144
NEW_CALDARI =
30000145
AMARR =
30002187
NIYABAINEN =
30000143
P3EN =
30000250
ASHAB =
30003491
MAURASI =
30000140

Instance Method Summary collapse

Instance Method Details

#security_categoryObject



20
21
22
23
24
25
26
# File 'app/models/eve_app/solar_system.rb', line 20

def security_category
  case security.round(1)
  when (0.5..1.0)  then :high
  when (0.0..0.4)  then :low
  when (-1.0..0.0) then :null
  end
end