Class: GetStream::Generated::Models::UpdateFeedGroupRequest

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

Initialize with attributes



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/getstream_ruby/generated/models/update_feed_group_request.rb', line 53

def initialize(attributes = {})
  super(attributes)
  @default_follower_role = attributes.fetch(:default_follower_role) { attributes.fetch('default_follower_role', nil) }
  @default_visibility = attributes.fetch(:default_visibility) { attributes.fetch('default_visibility', nil) }
  @activity_processors = attributes.fetch(:activity_processors) { attributes.fetch('activity_processors', nil) }
  @activity_selectors = attributes.fetch(:activity_selectors) { attributes.fetch('activity_selectors', nil) }
  @activity_filter = attributes.fetch(:activity_filter) { attributes.fetch('activity_filter', nil) }
  @activity_marks = attributes.fetch(:activity_marks) { attributes.fetch('activity_marks', nil) }
  @activity_processing = attributes.fetch(:activity_processing) { attributes.fetch('activity_processing', nil) }
  @aggregation = attributes.fetch(:aggregation) { attributes.fetch('aggregation', nil) }
  @custom = attributes.fetch(:custom) { attributes.fetch('custom', nil) }
  @notification = attributes.fetch(:notification) { attributes.fetch('notification', nil) }
  @push_notification = attributes.fetch(:push_notification) { attributes.fetch('push_notification', nil) }
  @ranking = attributes.fetch(:ranking) { attributes.fetch('ranking', nil) }
  @stories = attributes.fetch(:stories) { attributes.fetch('stories', nil) }
end

Instance Attribute Details

#activity_filter ⇒ ActivityFilterConfig



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

def activity_filter
  @activity_filter
end

#activity_marks ⇒ ActivityMarksConfig

Returns:



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

def activity_marks
  @activity_marks
end

#activity_processing ⇒ ActivityProcessingConfig



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

def activity_processing
  @activity_processing
end

#activity_processors ⇒ Array<ActivityProcessorConfig>

Returns Configuration for activity processors.

Returns:



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

def activity_processors
  @activity_processors
end

#activity_selectors ⇒ Array<ActivitySelectorConfig>

Returns Configuration for activity selectors.

Returns:



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

def activity_selectors
  @activity_selectors
end

#aggregation ⇒ AggregationConfig

Returns:



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

def aggregation
  @aggregation
end

#custom ⇒ Object

Returns Custom data for the feed group.

Returns:

  • (Object) —

    Custom data for the feed group



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

def custom
  @custom
end

#default_follower_role ⇒ String

Returns Role new followers of feeds in this group are given. Either a built-in (feed_follower, feed_member_viewer) or any role your app has defined. Empty means feed_follower. Applied when the follow is accepted, so a follow that starts pending picks it up on approval.

Returns:

  • (String) —

    Role new followers of feeds in this group are given. Either a built-in (feed_follower, feed_member_viewer) or any role your app has defined. Empty means feed_follower. Applied when the follow is accepted, so a follow that starts pending picks it up on approval



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

def default_follower_role
  @default_follower_role
end

#default_visibility ⇒ FeedVisibility

Returns Default visibility for the feed group. One of: public, visible, followers, members, private.

Returns:

  • (FeedVisibility) —

    Default visibility for the feed group. One of: public, visible, followers, members, private



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

def default_visibility
  @default_visibility
end

#notification ⇒ NotificationConfig

Returns:



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

def notification
  @notification
end

#push_notification ⇒ PushNotificationConfig



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

def push_notification
  @push_notification
end

#ranking ⇒ RankingConfig

Returns:



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

def ranking
  @ranking
end

#stories ⇒ StoriesConfig

Returns:



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

def stories
  @stories
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# File 'lib/getstream_ruby/generated/models/update_feed_group_request.rb', line 71

def self.json_field_mappings
  {
    default_follower_role: 'default_follower_role',
    default_visibility: 'default_visibility',
    activity_processors: 'activity_processors',
    activity_selectors: 'activity_selectors',
    activity_filter: 'activity_filter',
    activity_marks: 'activity_marks',
    activity_processing: 'activity_processing',
    aggregation: 'aggregation',
    custom: 'custom',
    notification: 'notification',
    push_notification: 'push_notification',
    ranking: 'ranking',
    stories: 'stories'
  }
end