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.fetch(:_object_id) { attributes.fetch('object_id', nil) }
  @action_type = attributes.fetch(:action_type) { attributes.fetch('action_type', nil) }
  @actor_type = attributes.fetch(:actor_type) { attributes.fetch('actor_type', nil) }
  @created_at = attributes.fetch(:created_at) { attributes.fetch('created_at', nil) }
  @object_type = attributes.fetch(:object_type) { attributes.fetch('object_type', nil) }
  @user_id = attributes.fetch(:user_id) { attributes.fetch('user_id', nil) }
  @changed_fields = attributes.fetch(:changed_fields) { attributes.fetch('changed_fields', nil) }
  @previous_obj_serialized = attributes.fetch(:previous_obj_serialized) { attributes.fetch('previous_obj_serialized', nil) }
end

Instance Attribute Details

#_object_id ⇒ String

Returns:

  • (String)


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

def _object_id
  @_object_id
end

#action_type ⇒ String

Returns:

  • (String)


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

def action_type
  @action_type
end

#actor_type ⇒ String

Returns:

  • (String)


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

def actor_type
  @actor_type
end

#changed_fields ⇒ Array<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_at ⇒ DateTime

Returns:

  • (DateTime)


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

def created_at
  @created_at
end

#object_type ⇒ String

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_serialized ⇒ Object

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_id ⇒ String

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_mappings ⇒ Object

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