Class: E2B::Services::EnvdHttpClient::RpcResponse

Inherits:
Struct
  • Object
show all
Defined in:
lib/e2b/services/base_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



146
147
148
# File 'lib/e2b/services/base_service.rb', line 146

def body
  @body
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



146
147
148
# File 'lib/e2b/services/base_service.rb', line 146

def headers
  @headers
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



146
147
148
# File 'lib/e2b/services/base_service.rb', line 146

def status
  @status
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


147
148
149
# File 'lib/e2b/services/base_service.rb', line 147

def success?
  status >= 200 && status < 300
end