Class: Noiseless::Adapters::ExecutionModules::HttpTransport::BufferedResponse

Inherits:
Struct
  • Object
show all
Defined in:
lib/noiseless/adapters/execution_modules/http_transport.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#body ⇒ Object

Returns the value of attribute body

Returns:

  • (Object) —

    the current value of body



42
43
44
# File 'lib/noiseless/adapters/execution_modules/http_transport.rb', line 42

def body
  @body
end

#status ⇒ Object

Returns the value of attribute status

Returns:

  • (Object) —

    the current value of status



42
43
44
# File 'lib/noiseless/adapters/execution_modules/http_transport.rb', line 42

def status
  @status
end

Instance Method Details

#close ⇒ Object



45
# File 'lib/noiseless/adapters/execution_modules/http_transport.rb', line 45

def close = nil

#read ⇒ Object



43
# File 'lib/noiseless/adapters/execution_modules/http_transport.rb', line 43

def read = body

#success? ⇒ Boolean

Returns:

  • (Boolean)


44
# File 'lib/noiseless/adapters/execution_modules/http_transport.rb', line 44

def success? = (200..299).cover?(status)