Class: GetStream::Generated::Models::ExportChannelsRequest

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

Initialize with attributes



32
33
34
35
36
37
38
39
40
# File 'lib/getstream_ruby/generated/models/export_channels_request.rb', line 32

def initialize(attributes = {})
  super(attributes)
  @channels = attributes[:channels] || attributes['channels']
  @clear_deleted_message_text = attributes[:clear_deleted_message_text] || attributes['clear_deleted_message_text'] || nil
  @export_users = attributes[:export_users] || attributes['export_users'] || nil
  @include_soft_deleted_channels = attributes[:include_soft_deleted_channels] || attributes['include_soft_deleted_channels'] || nil
  @include_truncated_messages = attributes[:include_truncated_messages] || attributes['include_truncated_messages'] || nil
  @version = attributes[:version] || attributes['version'] || nil
end

Instance Attribute Details

#channelsArray<ChannelExport>

Returns Export options for channels.

Returns:



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

def channels
  @channels
end

#clear_deleted_message_textBoolean

Returns Set if deleted message text should be cleared.

Returns:

  • (Boolean)

    Set if deleted message text should be cleared



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

def clear_deleted_message_text
  @clear_deleted_message_text
end

#export_usersBoolean

Returns:

  • (Boolean)


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

def export_users
  @export_users
end

#include_soft_deleted_channelsBoolean

Returns Set if you want to include deleted channels.

Returns:

  • (Boolean)

    Set if you want to include deleted channels



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

def include_soft_deleted_channels
  @include_soft_deleted_channels
end

#include_truncated_messagesBoolean

Returns Set if you want to include truncated messages.

Returns:

  • (Boolean)

    Set if you want to include truncated messages



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

def include_truncated_messages
  @include_truncated_messages
end

#versionString

Returns Export version.

Returns:

  • (String)

    Export version



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

def version
  @version
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



43
44
45
46
47
48
49
50
51
52
# File 'lib/getstream_ruby/generated/models/export_channels_request.rb', line 43

def self.json_field_mappings
  {
    channels: 'channels',
    clear_deleted_message_text: 'clear_deleted_message_text',
    export_users: 'export_users',
    include_soft_deleted_channels: 'include_soft_deleted_channels',
    include_truncated_messages: 'include_truncated_messages',
    version: 'version'
  }
end