Class: Weaviate::Connection::Response
- Inherits:
-
Struct
- Object
- Struct
- Weaviate::Connection::Response
- Defined in:
- lib/weaviate/connection.rb,
sig/weaviate.rbs
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#reason_phrase ⇒ Object
Returns the value of attribute reason_phrase.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
12 13 14 |
# File 'lib/weaviate/connection.rb', line 12 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers
12 13 14 |
# File 'lib/weaviate/connection.rb', line 12 def headers @headers end |
#reason_phrase ⇒ Object
Returns the value of attribute reason_phrase
12 13 14 |
# File 'lib/weaviate/connection.rb', line 12 def reason_phrase @reason_phrase end |
#status ⇒ Object
Returns the value of attribute status
12 13 14 |
# File 'lib/weaviate/connection.rb', line 12 def status @status end |
Instance Method Details
#success? ⇒ Boolean
13 14 15 |
# File 'lib/weaviate/connection.rb', line 13 def success? (200..299).cover?(status) end |