Class: MultiVideoStreaming::FinalResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/multi_video_streaming/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_errorObject

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

#responseObject

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

Returns:

  • (Boolean)


41
42
43
# File 'lib/multi_video_streaming/response.rb', line 41

def has_error?
  @has_error
end