Class: ElasticAPM::Context::Response Private
- Inherits:
-
Object
- Object
- ElasticAPM::Context::Response
- Defined in:
- lib/elastic_apm/context/response.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #finished ⇒ Object private
- #headers ⇒ Object private
- #headers_sent ⇒ Object private
- #status_code ⇒ Object private
Instance Method Summary collapse
-
#initialize(status_code, headers: {}, headers_sent: true, finished: true) ⇒ Response
constructor
private
A new instance of Response.
Constructor Details
#initialize(status_code, headers: {}, headers_sent: true, finished: true) ⇒ Response
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Response.
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/elastic_apm/context/response.rb', line 24 def initialize( status_code, headers: {}, headers_sent: true, finished: true ) @status_code = status_code @headers_sent = headers_sent @finished = finished self.headers = headers end |
Instance Attribute Details
#finished ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
37 38 39 |
# File 'lib/elastic_apm/context/response.rb', line 37 def finished @finished end |
#headers ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
38 39 40 |
# File 'lib/elastic_apm/context/response.rb', line 38 def headers @headers end |
#headers_sent ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
37 38 39 |
# File 'lib/elastic_apm/context/response.rb', line 37 def headers_sent @headers_sent end |
#status_code ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
37 38 39 |
# File 'lib/elastic_apm/context/response.rb', line 37 def status_code @status_code end |