Module: INat::App::Globals

Defined in:
lib/inat/app/globals.rb

Class Method Summary collapse

Class Method Details

.configObject



23
24
25
# File 'lib/inat/app/globals.rb', line 23

def config
  @@config
end

.config=(value) ⇒ Object



27
28
29
# File 'lib/inat/app/globals.rb', line 27

def config= value
  @@config = value
end

.current_taskObject



15
16
17
# File 'lib/inat/app/globals.rb', line 15

def current_task
  Thread.current.thread_variable_get 'current_task'
end

.current_task=(value) ⇒ Object



19
20
21
# File 'lib/inat/app/globals.rb', line 19

def current_task= value
  Thread.current.thread_variable_set 'current_task', value
end

.loggerObject



7
8
9
# File 'lib/inat/app/globals.rb', line 7

def logger
  @@logger
end

.logger=(value) ⇒ Object



11
12
13
# File 'lib/inat/app/globals.rb', line 11

def logger= value
  @@logger = value
end

.statusObject



31
32
33
# File 'lib/inat/app/globals.rb', line 31

def status
  @@status
end

.status=(value) ⇒ Object



35
36
37
# File 'lib/inat/app/globals.rb', line 35

def status= value
  @@status = value
end