Class: E2B::Services::EnvdHttpClient::RpcResponse
- Inherits:
-
Struct
- Object
- Struct
- E2B::Services::EnvdHttpClient::RpcResponse
- Defined in:
- lib/e2b/services/base_service.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
146 147 148 |
# File 'lib/e2b/services/base_service.rb', line 146 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers
146 147 148 |
# File 'lib/e2b/services/base_service.rb', line 146 def headers @headers end |
#status ⇒ Object
Returns the value of attribute status
146 147 148 |
# File 'lib/e2b/services/base_service.rb', line 146 def status @status end |
Instance Method Details
#success? ⇒ Boolean
147 148 149 |
# File 'lib/e2b/services/base_service.rb', line 147 def success? status >= 200 && status < 300 end |