Class: Smartsheet::API::FaradaySuccessResponse
- Inherits:
-
FaradayResponse
- Object
- FaradayResponse
- Smartsheet::API::FaradaySuccessResponse
- Defined in:
- lib/smartsheet/api/faraday_adapter/faraday_response.rb
Overview
Provides a Smartsheet success response from a Faraday response environment
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Attributes inherited from FaradayResponse
#headers, #reason_phrase, #status_code
Instance Method Summary collapse
-
#initialize(result, faraday_env) ⇒ FaradaySuccessResponse
constructor
A new instance of FaradaySuccessResponse.
- #should_retry? ⇒ Boolean
- #success? ⇒ Boolean
Methods inherited from FaradayResponse
Constructor Details
#initialize(result, faraday_env) ⇒ FaradaySuccessResponse
Returns a new instance of FaradaySuccessResponse.
56 57 58 59 |
# File 'lib/smartsheet/api/faraday_adapter/faraday_response.rb', line 56 def initialize(result, faraday_env) super(faraday_env) @result = result end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
54 55 56 |
# File 'lib/smartsheet/api/faraday_adapter/faraday_response.rb', line 54 def result @result end |
Instance Method Details
#should_retry? ⇒ Boolean
61 62 63 |
# File 'lib/smartsheet/api/faraday_adapter/faraday_response.rb', line 61 def should_retry? false end |
#success? ⇒ Boolean
65 66 67 |
# File 'lib/smartsheet/api/faraday_adapter/faraday_response.rb', line 65 def success? true end |