Class: GetStream::Generated::Models::ModerationFlagResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/moderation_flag_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 = {}) ⇒ ModerationFlagResponse

Initialize with attributes



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

def initialize(attributes = {})
  super(attributes)
  @created_at = attributes[:created_at] || attributes['created_at']
  @entity_id = attributes[:entity_id] || attributes['entity_id']
  @entity_type = attributes[:entity_type] || attributes['entity_type']
  @type = attributes[:type] || attributes['type']
  @updated_at = attributes[:updated_at] || attributes['updated_at']
  @user_id = attributes[:user_id] || attributes['user_id']
  @result = attributes[:result] || attributes['result']
  @entity_creator_id = attributes[:entity_creator_id] || attributes['entity_creator_id'] || nil
  @reason = attributes[:reason] || attributes['reason'] || nil
  @review_queue_item_id = attributes[:review_queue_item_id] || attributes['review_queue_item_id'] || nil
  @labels = attributes[:labels] || attributes['labels'] || nil
  @custom = attributes[:custom] || attributes['custom'] || nil
  @moderation_payload = attributes[:moderation_payload] || attributes['moderation_payload'] || nil
  @review_queue_item = attributes[:review_queue_item] || attributes['review_queue_item'] || nil
  @user = attributes[:user] || attributes['user'] || nil
end

Instance Attribute Details

#created_atDateTime

Returns:

  • (DateTime)


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

def created_at
  @created_at
end

#customObject

Returns:

  • (Object)


47
48
49
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 47

def custom
  @custom
end

#entity_creator_idString

Returns:

  • (String)


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

def entity_creator_id
  @entity_creator_id
end

#entity_idString

Returns:

  • (String)


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

def entity_id
  @entity_id
end

#entity_typeString

Returns:

  • (String)


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

def entity_type
  @entity_type
end

#labelsArray<String>

Returns:

  • (Array<String>)


44
45
46
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 44

def labels
  @labels
end

#moderation_payloadModerationPayload

Returns:



50
51
52
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 50

def moderation_payload
  @moderation_payload
end

#reasonString

Returns:

  • (String)


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

def reason
  @reason
end

#resultArray<Object>

Returns:

  • (Array<Object>)


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

def result
  @result
end

#review_queue_itemReviewQueueItemResponse



53
54
55
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 53

def review_queue_item
  @review_queue_item
end

#review_queue_item_idString

Returns:

  • (String)


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

def review_queue_item_id
  @review_queue_item_id
end

#typeString

Returns:

  • (String)


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

def type
  @type
end

#updated_atDateTime

Returns:

  • (DateTime)


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

def updated_at
  @updated_at
end

#userUserResponse

Returns:



56
57
58
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 56

def user
  @user
end

#user_idString

Returns:

  • (String)


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

def user_id
  @user_id
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 79

def self.json_field_mappings
  {
    created_at: 'created_at',
    entity_id: 'entity_id',
    entity_type: 'entity_type',
    type: 'type',
    updated_at: 'updated_at',
    user_id: 'user_id',
    result: 'result',
    entity_creator_id: 'entity_creator_id',
    reason: 'reason',
    review_queue_item_id: 'review_queue_item_id',
    labels: 'labels',
    custom: 'custom',
    moderation_payload: 'moderation_payload',
    review_queue_item: 'review_queue_item',
    user: 'user'
  }
end