Module: Bp3::Core::Rqid

Extended by:
ActiveSupport::Concern
Included in:
Test
Defined in:
lib/bp3/core/rqid.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.global_request_state_classObject



10
11
12
# File 'lib/bp3/core/rqid.rb', line 10

def self.global_request_state_class
  @@global_request_state_class ||= global_request_state_class_name.constantize # rubocop:disable Style/ClassVars
end

Instance Method Details

#rqid_from_global_stateObject (private)



35
36
37
# File 'lib/bp3/core/rqid.rb', line 35

def rqid_from_global_state
  Bp3::Core::Rqid.global_request_state_class.send(Bp3::Core::Rqid.global_request_state_method)
end

#set_rqidObject (private)



29
30
31
32
33
# File 'lib/bp3/core/rqid.rb', line 29

def set_rqid
  return if rqid

  self.rqid = rqid_from_global_state
end