Class: Utils::ProbeClient::EnvProxy
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
-
#initialize(server) ⇒ EnvProxy
constructor
A new instance of EnvProxy.
Constructor Details
#initialize(server) ⇒ EnvProxy
Returns a new instance of EnvProxy.
58 59 60 |
# File 'lib/utils/probe_server.rb', line 58 def initialize(server) @server = server end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
72 73 74 |
# File 'lib/utils/probe_server.rb', line 72 def env @env end |
Instance Method Details
#[](key) ⇒ Object
67 68 69 70 |
# File 'lib/utils/probe_server.rb', line 67 def [](key) response = @server.transmit_with_response(type: 'get_env', key:) response.env end |
#[]=(key, value) ⇒ Object
62 63 64 65 |
# File 'lib/utils/probe_server.rb', line 62 def []=(key, value) response = @server.transmit_with_response(type: 'set_env', key:, value:) response.env end |