Class: GetStream::Generated::Models::SetHistoryWindowTeamsRequest

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

Initialize with attributes



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

def initialize(attributes = {})
  super(attributes)
  @teams = attributes.fetch(:teams) { attributes.fetch('teams', nil) }
end

Instance Attribute Details

#teams ⇒ Array<String>

Returns Teams to give full history, 1 to 10, each listed once. Marking a team that already has full history keeps its created_at.

Returns:

  • (Array<String>) —

    Teams to give full history, 1 to 10, each listed once. Marking a team that already has full history keeps its created_at



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

def teams
  @teams
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



23
24
25
26
27
# File 'lib/getstream_ruby/generated/models/set_history_window_teams_request.rb', line 23

def self.json_field_mappings
  {
    teams: 'teams'
  }
end