Class: GetStream::Generated::Models::RevisionHistoryResponse

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

Initialize with attributes



38
39
40
41
42
43
44
45
46
47
48
# File 'lib/getstream_ruby/generated/models/revision_history_response.rb', line 38

def initialize(attributes = {})
  super(attributes)
  @_object_id = attributes[:_object_id] || attributes['object_id']
  @action_type = attributes[:action_type] || attributes['action_type']
  @actor_type = attributes[:actor_type] || attributes['actor_type']
  @created_at = attributes[:created_at] || attributes['created_at']
  @object_type = attributes[:object_type] || attributes['object_type']
  @user_id = attributes[:user_id] || attributes['user_id']
  @changed_fields = attributes[:changed_fields] || attributes['changed_fields'] || nil
  @previous_obj_serialized = attributes[:previous_obj_serialized] || attributes['previous_obj_serialized'] || nil
end

Instance Attribute Details

#_object_idString

Returns:

  • (String)


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

def _object_id
  @_object_id
end

#action_typeString

Returns:

  • (String)


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

def action_type
  @action_type
end

#actor_typeString

Returns:

  • (String)


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

def actor_type
  @actor_type
end

#changed_fieldsArray<String>

Returns:

  • (Array<String>)


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

def changed_fields
  @changed_fields
end

#created_atDateTime

Returns:

  • (DateTime)


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

def created_at
  @created_at
end

#object_typeString

Returns:

  • (String)


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

def object_type
  @object_type
end

#previous_obj_serializedObject

Returns:

  • (Object)


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

def previous_obj_serialized
  @previous_obj_serialized
end

#user_idString

Returns:

  • (String)


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

def user_id
  @user_id
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/getstream_ruby/generated/models/revision_history_response.rb', line 51

def self.json_field_mappings
  {
    _object_id: 'object_id',
    action_type: 'action_type',
    actor_type: 'actor_type',
    created_at: 'created_at',
    object_type: 'object_type',
    user_id: 'user_id',
    changed_fields: 'changed_fields',
    previous_obj_serialized: 'previous_obj_serialized'
  }
end