Class: GetStream::Generated::Models::ActionLogResponse

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

Initialize with attributes



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

def initialize(attributes = {})
  super(attributes)
  @created_at = attributes[:created_at] || attributes['created_at']
  @id = attributes[:id] || attributes['id']
  @reason = attributes[:reason] || attributes['reason']
  @target_user_id = attributes[:target_user_id] || attributes['target_user_id']
  @type = attributes[:type] || attributes['type']
  @user_id = attributes[:user_id] || attributes['user_id']
  @ai_providers = attributes[:ai_providers] || attributes['ai_providers']
  @custom = attributes[:custom] || attributes['custom']
  @review_queue_item = attributes[:review_queue_item] || attributes['review_queue_item'] || nil
  @target_user = attributes[:target_user] || attributes['target_user'] || nil
  @user = attributes[:user] || attributes['user'] || nil
end

Instance Attribute Details

#ai_providersArray<String>

Returns:

  • (Array<String>)


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

def ai_providers
  @ai_providers
end

#created_atDateTime

Returns Timestamp when the action was taken.

Returns:

  • (DateTime)

    Timestamp when the action was taken



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

def created_at
  @created_at
end

#customObject

Returns Additional metadata about the action.

Returns:

  • (Object)

    Additional metadata about the action



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

def custom
  @custom
end

#idString

Returns Unique identifier of the action log.

Returns:

  • (String)

    Unique identifier of the action log



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

def id
  @id
end

#reasonString

Returns Reason for the moderation action.

Returns:

  • (String)

    Reason for the moderation action



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

def reason
  @reason
end

#review_queue_itemReviewQueueItemResponse



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

def review_queue_item
  @review_queue_item
end

#target_userUserResponse

Returns:



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

def target_user
  @target_user
end

#target_user_idString

Returns ID of the user who was the target of the action.

Returns:

  • (String)

    ID of the user who was the target of the action



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

def target_user_id
  @target_user_id
end

#typeString

Returns Type of moderation action.

Returns:

  • (String)

    Type of moderation action



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

def type
  @type
end

#userUserResponse

Returns:



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

def user
  @user
end

#user_idString

Returns ID of the user who performed the action.

Returns:

  • (String)

    ID of the user who performed the action



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

def user_id
  @user_id
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 63

def self.json_field_mappings
  {
    created_at: 'created_at',
    id: 'id',
    reason: 'reason',
    target_user_id: 'target_user_id',
    type: 'type',
    user_id: 'user_id',
    ai_providers: 'ai_providers',
    custom: 'custom',
    review_queue_item: 'review_queue_item',
    target_user: 'target_user',
    user: 'user'
  }
end