Class: GetStream::Generated::Models::FeedGroupResponse

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

Initialize with attributes



65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'lib/getstream_ruby/generated/models/feed_group_response.rb', line 65

def initialize(attributes = {})
  super(attributes)
  @created_at = attributes.fetch(:created_at) { attributes.fetch('created_at', nil) }
  @id = attributes.fetch(:id) { attributes.fetch('id', nil) }
  @updated_at = attributes.fetch(:updated_at) { attributes.fetch('updated_at', nil) }
  @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) }
  @deleted_at = attributes.fetch(:deleted_at) { attributes.fetch('deleted_at', 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



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

def activity_filter
  @activity_filter
end

#activity_marks ⇒ ActivityMarksConfig

Returns:



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

def activity_marks
  @activity_marks
end

#activity_processing ⇒ ActivityProcessingConfig



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

def activity_processing
  @activity_processing
end

#activity_processors ⇒ Array<ActivityProcessorConfig>

Returns Configuration for activity processors.

Returns:



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

def activity_processors
  @activity_processors
end

#activity_selectors ⇒ Array<ActivitySelectorConfigResponse>

Returns Configuration for activity selectors.

Returns:



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

def activity_selectors
  @activity_selectors
end

#aggregation ⇒ AggregationConfig

Returns:



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

def aggregation
  @aggregation
end

#created_at ⇒ DateTime

Returns When the feed group was created.

Returns:

  • (DateTime) —

    When the feed group was created



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

def created_at
  @created_at
end

#custom ⇒ Object

Returns Custom data for the feed group.

Returns:

  • (Object) —

    Custom data for the feed group



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

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



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

def default_follower_role
  @default_follower_role
end

#default_visibility ⇒ FeedVisibility

Returns Default visibility for activities. One of: public, visible, followers, members, private.

Returns:

  • (FeedVisibility) —

    Default visibility for activities. One of: public, visible, followers, members, private



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

def default_visibility
  @default_visibility
end

#deleted_at ⇒ DateTime

Returns:

  • (DateTime)


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

def deleted_at
  @deleted_at
end

#id ⇒ String

Returns Identifier within the group.

Returns:

  • (String) —

    Identifier within the group



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

def id
  @id
end

#notification ⇒ NotificationConfig

Returns:



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

def notification
  @notification
end

#push_notification ⇒ PushNotificationConfig



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

def push_notification
  @push_notification
end

#ranking ⇒ RankingConfig

Returns:



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

def ranking
  @ranking
end

#stories ⇒ StoriesConfig

Returns:



62
63
64
# File 'lib/getstream_ruby/generated/models/feed_group_response.rb', line 62

def stories
  @stories
end

#updated_at ⇒ DateTime

Returns When the feed group was last updated.

Returns:

  • (DateTime) —

    When the feed group was last updated



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

def updated_at
  @updated_at
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/getstream_ruby/generated/models/feed_group_response.rb', line 87

def self.json_field_mappings
  {
    created_at: 'created_at',
    id: 'id',
    updated_at: 'updated_at',
    default_follower_role: 'default_follower_role',
    default_visibility: 'default_visibility',
    deleted_at: 'deleted_at',
    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