Class: Roseflow::Pinecone::BaseResponse
- Inherits:
-
Object
- Object
- Roseflow::Pinecone::BaseResponse
- Defined in:
- lib/roseflow/pinecone/response.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(method:, response:) ⇒ BaseResponse
constructor
A new instance of BaseResponse.
- #success? ⇒ Boolean
Constructor Details
#initialize(method:, response:) ⇒ BaseResponse
Returns a new instance of BaseResponse.
10 11 12 13 14 |
# File 'lib/roseflow/pinecone/response.rb', line 10 def initialize(method:, response:) @response = response @method_ = method handle_response end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
6 7 8 |
# File 'lib/roseflow/pinecone/response.rb', line 6 def body @body end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
8 9 10 |
# File 'lib/roseflow/pinecone/response.rb', line 8 def object @object end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
7 8 9 |
# File 'lib/roseflow/pinecone/response.rb', line 7 def status @status end |
Instance Method Details
#success? ⇒ Boolean
16 17 18 |
# File 'lib/roseflow/pinecone/response.rb', line 16 def success? @response.success? end |