Class: Slimmer::GovukRequestId

Inherits:
Object
  • Object
show all
Defined in:
lib/slimmer/govuk_request_id.rb

Class Method Summary collapse

Class Method Details

.valueObject



4
5
6
# File 'lib/slimmer/govuk_request_id.rb', line 4

def value
  Thread.current[:slimmer_govuk_request_id]
end

.value=(new_id) ⇒ Object



8
9
10
# File 'lib/slimmer/govuk_request_id.rb', line 8

def value=(new_id)
  Thread.current[:slimmer_govuk_request_id] = new_id
end