Class: MultiVideoStreaming::FinalResponse
- Inherits:
-
Object
- Object
- MultiVideoStreaming::FinalResponse
- Defined in:
- lib/multi_video_streaming/response.rb
Instance Attribute Summary collapse
-
#has_error ⇒ Object
readonly
Returns the value of attribute has_error.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
- #has_error? ⇒ Boolean
-
#initialize(has_error:, response:) ⇒ FinalResponse
constructor
A new instance of FinalResponse.
Constructor Details
#initialize(has_error:, response:) ⇒ FinalResponse
Returns a new instance of FinalResponse.
36 37 38 39 |
# File 'lib/multi_video_streaming/response.rb', line 36 def initialize(has_error:, response:) @has_error = has_error @response = format_response(response: response) end |
Instance Attribute Details
#has_error ⇒ Object
Returns the value of attribute has_error.
33 34 35 |
# File 'lib/multi_video_streaming/response.rb', line 33 def has_error @has_error end |
#response ⇒ Object
Returns the value of attribute response.
30 31 32 |
# File 'lib/multi_video_streaming/response.rb', line 30 def response @response end |
Instance Method Details
#has_error? ⇒ Boolean
41 42 43 |
# File 'lib/multi_video_streaming/response.rb', line 41 def has_error? @has_error end |