Sha256: d676daecb68439fbe174e895931e44cffc784c3ab5c5519ff9bffb563f807f55

Contents?: true

Size: 388 Bytes

Versions: 5

Compression:

Stored size: 388 Bytes

Contents

class Gon
  class Request
    def initialize(environment)
      @request_env = environment
      @gon = {}
    end

    def env
      @request_env if defined? @request_env
    end

    def id
      @request_id if defined? @request_id
    end

    def id=(request_id)
      @request_id = request_id
    end

    def gon
      @gon
    end

    def clear
      @gon = {}
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gon-5.0.4 lib/gon/request.rb
gon-5.0.3 lib/gon/request.rb
gon-5.0.2 lib/gon/request.rb
gon-5.0.1 lib/gon/request.rb
gon-5.0.0 lib/gon/request.rb