Class: CruFlags::Fetcher::Response
- Inherits:
-
Struct
- Object
- Struct
- CruFlags::Fetcher::Response
- Defined in:
- lib/cru_flags/fetcher.rb
Overview
The parts of a Net::HTTPResponse this module uses, captured while the connection is still open. The body is read (and size-capped) inside the request block rather than buffered by Net::HTTP, so nothing here holds a live socket.
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#code ⇒ Object
Returns the value of attribute code.
-
#etag ⇒ Object
Returns the value of attribute etag.
-
#location ⇒ Object
Returns the value of attribute location.
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
16 17 18 |
# File 'lib/cru_flags/fetcher.rb', line 16 def body @body end |
#code ⇒ Object
Returns the value of attribute code
16 17 18 |
# File 'lib/cru_flags/fetcher.rb', line 16 def code @code end |
#etag ⇒ Object
Returns the value of attribute etag
16 17 18 |
# File 'lib/cru_flags/fetcher.rb', line 16 def etag @etag end |
#location ⇒ Object
Returns the value of attribute location
16 17 18 |
# File 'lib/cru_flags/fetcher.rb', line 16 def location @location end |