Class: GetStream::Generated::Models::GetCallReportResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/get_call_report_response.rb

Overview

Basic response information

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #inspect, omit_empty_fields, #to_h, #to_json

Constructor Details

#initialize(attributes = {}) ⇒ GetCallReportResponse

Initialize with attributes



35
36
37
38
39
40
41
42
43
44
# File 'lib/getstream_ruby/generated/models/get_call_report_response.rb', line 35

def initialize(attributes = {})
  super(attributes)
  @duration = attributes.fetch(:duration) { attributes.fetch('duration', nil) }
  @session_id = attributes.fetch(:session_id) { attributes.fetch('session_id', nil) }
  @report = attributes.fetch(:report) { attributes.fetch('report', nil) }
  @video_reactions = attributes.fetch(:video_reactions) { attributes.fetch('video_reactions', nil) }
  @chat_activity = attributes.fetch(:chat_activity) { attributes.fetch('chat_activity', nil) }
  @digest = attributes.fetch(:digest) { attributes.fetch('digest', nil) }
  @session = attributes.fetch(:session) { attributes.fetch('session', nil) }
end

Instance Attribute Details

#chat_activity ⇒ ChatActivityStatsResponse



26
27
28
# File 'lib/getstream_ruby/generated/models/get_call_report_response.rb', line 26

def chat_activity
  @chat_activity
end

#digest ⇒ BroadcastDigest

Returns:



29
30
31
# File 'lib/getstream_ruby/generated/models/get_call_report_response.rb', line 29

def digest
  @digest
end

#duration ⇒ String

Returns Duration of the request in milliseconds.

Returns:

  • (String) —

    Duration of the request in milliseconds



14
15
16
# File 'lib/getstream_ruby/generated/models/get_call_report_response.rb', line 14

def duration
  @duration
end

#report ⇒ ReportResponse

Returns:



20
21
22
# File 'lib/getstream_ruby/generated/models/get_call_report_response.rb', line 20

def report
  @report
end

#session ⇒ CallSessionResponse

Returns:



32
33
34
# File 'lib/getstream_ruby/generated/models/get_call_report_response.rb', line 32

def session
  @session
end

#session_id ⇒ String

Returns:

  • (String)


17
18
19
# File 'lib/getstream_ruby/generated/models/get_call_report_response.rb', line 17

def session_id
  @session_id
end

#video_reactions ⇒ Array<VideoReactionsResponse>

Returns:



23
24
25
# File 'lib/getstream_ruby/generated/models/get_call_report_response.rb', line 23

def video_reactions
  @video_reactions
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



47
48
49
50
51
52
53
54
55
56
57
# File 'lib/getstream_ruby/generated/models/get_call_report_response.rb', line 47

def self.json_field_mappings
  {
    duration: 'duration',
    session_id: 'session_id',
    report: 'report',
    video_reactions: 'video_reactions',
    chat_activity: 'chat_activity',
    digest: 'digest',
    session: 'session'
  }
end