Class: CruFlags::Fetcher::Response

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



16
17
18
# File 'lib/cru_flags/fetcher.rb', line 16

def body
  @body
end

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



16
17
18
# File 'lib/cru_flags/fetcher.rb', line 16

def code
  @code
end

#etagObject

Returns the value of attribute etag

Returns:

  • (Object)

    the current value of etag



16
17
18
# File 'lib/cru_flags/fetcher.rb', line 16

def etag
  @etag
end

#locationObject

Returns the value of attribute location

Returns:

  • (Object)

    the current value of location



16
17
18
# File 'lib/cru_flags/fetcher.rb', line 16

def location
  @location
end