Class: GetStream::Generated::Models::LabelsResponse

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

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 = {}) ⇒ LabelsResponse

Initialize with attributes



44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/getstream_ruby/generated/models/labels_response.rb', line 44

def initialize(attributes = {})
  super(attributes)
  @duration = attributes[:duration] || attributes['duration']
  @recommended_action = attributes[:recommended_action] || attributes['recommended_action']
  @content_id = attributes[:content_id] || attributes['content_id'] || nil
  @directed_at = attributes[:directed_at] || attributes['directed_at'] || nil
  @fully_masked_content = attributes[:fully_masked_content] || attributes['fully_masked_content'] || nil
  @harm_type = attributes[:harm_type] || attributes['harm_type'] || nil
  @language = attributes[:language] || attributes['language'] || nil
  @masked_content = attributes[:masked_content] || attributes['masked_content'] || nil
  @severity = attributes[:severity] || attributes['severity'] || nil
  @labels = attributes[:labels] || attributes['labels'] || nil
end

Instance Attribute Details

#content_idString



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

def content_id
  @content_id
end

#directed_atString



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

def directed_at
  @directed_at
end

#durationString



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

def duration
  @duration
end

#fully_masked_contentString



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

def fully_masked_content
  @fully_masked_content
end

#harm_typeString



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

def harm_type
  @harm_type
end

#labelsArray<String>



41
42
43
# File 'lib/getstream_ruby/generated/models/labels_response.rb', line 41

def labels
  @labels
end

#languageString



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

def language
  @language
end

#masked_contentString



35
36
37
# File 'lib/getstream_ruby/generated/models/labels_response.rb', line 35

def masked_content
  @masked_content
end


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

def recommended_action
  @recommended_action
end

#severityString



38
39
40
# File 'lib/getstream_ruby/generated/models/labels_response.rb', line 38

def severity
  @severity
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/getstream_ruby/generated/models/labels_response.rb', line 59

def self.json_field_mappings
  {
    duration: 'duration',
    recommended_action: 'recommended_action',
    content_id: 'content_id',
    directed_at: 'directed_at',
    fully_masked_content: 'fully_masked_content',
    harm_type: 'harm_type',
    language: 'language',
    masked_content: 'masked_content',
    severity: 'severity',
    labels: 'labels'
  }
end