Class: NewRelic::Agent::Instrumentation::GRPC::Client::RequestWrapper
- Inherits:
-
Object
- Object
- NewRelic::Agent::Instrumentation::GRPC::Client::RequestWrapper
- Defined in:
- lib/new_relic/agent/instrumentation/grpc/client/request_wrapper.rb
Instance Attribute Summary collapse
-
#newrelic_metadata ⇒ Object
readonly
Returns the value of attribute newrelic_metadata.
Instance Method Summary collapse
- #[]=(key, value) ⇒ Object
- #host_from_header ⇒ Object
-
#initialize(host) ⇒ RequestWrapper
constructor
A new instance of RequestWrapper.
Constructor Details
#initialize(host) ⇒ RequestWrapper
Returns a new instance of RequestWrapper.
13 14 15 16 |
# File 'lib/new_relic/agent/instrumentation/grpc/client/request_wrapper.rb', line 13 def initialize(host) @host = host @newrelic_metadata = {} end |
Instance Attribute Details
#newrelic_metadata ⇒ Object (readonly)
Returns the value of attribute newrelic_metadata.
11 12 13 |
# File 'lib/new_relic/agent/instrumentation/grpc/client/request_wrapper.rb', line 11 def @newrelic_metadata end |
Instance Method Details
#[]=(key, value) ⇒ Object
22 23 24 |
# File 'lib/new_relic/agent/instrumentation/grpc/client/request_wrapper.rb', line 22 def []=(key, value) @newrelic_metadata[key] = value end |
#host_from_header ⇒ Object
18 19 20 |
# File 'lib/new_relic/agent/instrumentation/grpc/client/request_wrapper.rb', line 18 def host_from_header @host end |