Class: EveApp::Activity

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

Constant Summary collapse

TYPE_MAP =
{
  1 => :manufacture,
  3 => :research_te,
  4 => :research_me,
  5 => :copying,
  8 => :invention
}
MANUFACTURE =
1
RESEARCH_TE =
3
RESEARCH_ME =
4
COPYING =
5
INVENTION =
8

Instance Method Summary collapse

Instance Method Details

#iconObject



17
18
19
20
21
22
23
24
25
# File 'app/models/eve_app/activity.rb', line 17

def icon
  case id
  when 1 then 'manufacturing.png'
  when 3 then 'researchTime.png'
  when 4 then 'researchMaterial.png'
  when 5 then 'copying.png'
  when 8 then 'invention.png'
  end
end