Class: Roseflow::Pinecone::VectorResponse
- Inherits:
-
BaseResponse
- Object
- BaseResponse
- Roseflow::Pinecone::VectorResponse
- Defined in:
- lib/roseflow/pinecone/response.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#upsert_count ⇒ Object
readonly
Returns the value of attribute upsert_count.
-
#vectors ⇒ Object
readonly
Returns the value of attribute vectors.
Attributes inherited from BaseResponse
Instance Method Summary collapse
Methods inherited from BaseResponse
Constructor Details
This class inherits a constructor from Roseflow::Pinecone::BaseResponse
Instance Attribute Details
#upsert_count ⇒ Object (readonly)
Returns the value of attribute upsert_count.
49 50 51 |
# File 'lib/roseflow/pinecone/response.rb', line 49 def upsert_count @upsert_count end |
#vectors ⇒ Object (readonly)
Returns the value of attribute vectors.
49 50 51 |
# File 'lib/roseflow/pinecone/response.rb', line 49 def vectors @vectors end |
Instance Method Details
#failure? ⇒ Boolean
63 64 65 |
# File 'lib/roseflow/pinecone/response.rb', line 63 def failure? !success? end |
#message ⇒ Object
55 56 57 |
# File 'lib/roseflow/pinecone/response.rb', line 55 def @body.fetch("message") end |
#success? ⇒ Boolean
59 60 61 |
# File 'lib/roseflow/pinecone/response.rb', line 59 def success? @response.success? && @status == 200 end |