Class: GetStream::Generated::Models::FeedGroup

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

Initialize with attributes



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 62

def initialize(attributes = {})
  super(attributes)
  @aggregation_version = attributes[:aggregation_version] || attributes['aggregation_version']
  @app_pk = attributes[:app_pk] || attributes['app_pk']
  @created_at = attributes[:created_at] || attributes['created_at']
  @default_visibility = attributes[:default_visibility] || attributes['default_visibility']
  @group_id = attributes[:group_id] || attributes['group_id']
  @updated_at = attributes[:updated_at] || attributes['updated_at']
  @activity_processors = attributes[:activity_processors] || attributes['activity_processors']
  @activity_selectors = attributes[:activity_selectors] || attributes['activity_selectors']
  @custom = attributes[:custom] || attributes['custom']
  @deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil
  @last_feed_get_at = attributes[:last_feed_get_at] || attributes['last_feed_get_at'] || nil
  @aggregation = attributes[:aggregation] || attributes['aggregation'] || nil
  @notification = attributes[:notification] || attributes['notification'] || nil
  @push_notification = attributes[:push_notification] || attributes['push_notification'] || nil
  @ranking = attributes[:ranking] || attributes['ranking'] || nil
  @stories = attributes[:stories] || attributes['stories'] || nil
end

Instance Attribute Details

#activity_processorsArray<ActivityProcessorConfig>

Returns:



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

def activity_processors
  @activity_processors
end

#activity_selectorsArray<ActivitySelectorConfig>

Returns:



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

def activity_selectors
  @activity_selectors
end

#aggregationAggregationConfig

Returns:



47
48
49
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 47

def aggregation
  @aggregation
end

#aggregation_versionInteger

Returns:

  • (Integer)


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

def aggregation_version
  @aggregation_version
end

#app_pkInteger

Returns:

  • (Integer)


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

def app_pk
  @app_pk
end

#created_atDateTime

Returns:

  • (DateTime)


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

def created_at
  @created_at
end

#customObject

Returns:

  • (Object)


38
39
40
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 38

def custom
  @custom
end

#default_visibilityString

Returns:

  • (String)


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

def default_visibility
  @default_visibility
end

#deleted_atDateTime

Returns:

  • (DateTime)


41
42
43
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 41

def deleted_at
  @deleted_at
end

#group_idString

Returns:

  • (String)


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

def group_id
  @group_id
end

#last_feed_get_atDateTime

Returns:

  • (DateTime)


44
45
46
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 44

def last_feed_get_at
  @last_feed_get_at
end

#notificationNotificationConfig

Returns:



50
51
52
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 50

def notification
  @notification
end

#push_notificationPushNotificationConfig



53
54
55
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 53

def push_notification
  @push_notification
end

#rankingRankingConfig

Returns:



56
57
58
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 56

def ranking
  @ranking
end

#storiesStoriesConfig

Returns:



59
60
61
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 59

def stories
  @stories
end

#updated_atDateTime

Returns:

  • (DateTime)


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

def updated_at
  @updated_at
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 83

def self.json_field_mappings
  {
    aggregation_version: 'aggregation_version',
    app_pk: 'app_pk',
    created_at: 'created_at',
    default_visibility: 'default_visibility',
    group_id: 'group_id',
    updated_at: 'updated_at',
    activity_processors: 'activity_processors',
    activity_selectors: 'activity_selectors',
    custom: 'custom',
    deleted_at: 'deleted_at',
    last_feed_get_at: 'last_feed_get_at',
    aggregation: 'aggregation',
    notification: 'notification',
    push_notification: 'push_notification',
    ranking: 'ranking',
    stories: 'stories'
  }
end