Class: GetStream::Generated::Models::ActivitySelectorConfigResponse

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

Initialize with attributes



35
36
37
38
39
40
41
42
43
44
# File 'lib/getstream_ruby/generated/models/activity_selector_config_response.rb', line 35

def initialize(attributes = {})
  super(attributes)
  @type = attributes[:type] || attributes['type']
  @cutoff_time = attributes[:cutoff_time] || attributes['cutoff_time'] || nil
  @cutoff_window = attributes[:cutoff_window] || attributes['cutoff_window'] || nil
  @min_popularity = attributes[:min_popularity] || attributes['min_popularity'] || nil
  @sort = attributes[:sort] || attributes['sort'] || nil
  @filter = attributes[:filter] || attributes['filter'] || nil
  @params = attributes[:params] || attributes['params'] || nil
end

Instance Attribute Details

#cutoff_timeDateTime

Returns Time threshold for activity selection (timestamp).

Returns:

  • (DateTime)

    Time threshold for activity selection (timestamp)



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

def cutoff_time
  @cutoff_time
end

#cutoff_windowString

Returns Flexible relative time window for activity selection (e.g., ‘1h’, ‘3d’, ‘1y’).

Returns:

  • (String)

    Flexible relative time window for activity selection (e.g., ‘1h’, ‘3d’, ‘1y’)



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

def cutoff_window
  @cutoff_window
end

#filterObject

Returns Filter for activity selection.

Returns:

  • (Object)

    Filter for activity selection



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

def filter
  @filter
end

#min_popularityInteger

Returns Minimum popularity threshold.

Returns:

  • (Integer)

    Minimum popularity threshold



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

def min_popularity
  @min_popularity
end

#paramsObject

Returns Generic params for selector-specific configuration.

Returns:

  • (Object)

    Generic params for selector-specific configuration



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

def params
  @params
end

#sortArray<SortParamRequest>

Returns Sort parameters for activity selection.

Returns:



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

def sort
  @sort
end

#typeString

Returns Type of selector.

Returns:

  • (String)

    Type of selector



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

def type
  @type
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



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

def self.json_field_mappings
  {
    type: 'type',
    cutoff_time: 'cutoff_time',
    cutoff_window: 'cutoff_window',
    min_popularity: 'min_popularity',
    sort: 'sort',
    filter: 'filter',
    params: 'params'
  }
end