Class: GetStream::Generated::Models::FeedSuggestionResponse
- Defined in:
- lib/getstream_ruby/generated/models/feed_suggestion_response.rb
Instance Attribute Summary collapse
- #activity_count ⇒ Integer
- #algorithm_scores ⇒ Hash<String, Float>
-
#created_at ⇒ DateTime
When the feed was created.
- #created_by ⇒ UserResponse
-
#custom ⇒ Object
Custom data for the feed.
-
#deleted_at ⇒ DateTime
When the feed was deleted.
-
#description ⇒ String
Description of the feed.
-
#feed ⇒ String
Fully qualified feed ID (group_id:id).
-
#filter_tags ⇒ Array<String>
Tags used for filtering feeds.
-
#follower_count ⇒ Integer
Number of followers of this feed.
-
#following_count ⇒ Integer
Number of feeds this feed follows.
-
#group_id ⇒ String
Group this feed belongs to.
-
#id ⇒ String
Unique identifier for the feed.
-
#member_count ⇒ Integer
Number of members in this feed.
-
#name ⇒ String
Name of the feed.
-
#own_capabilities ⇒ Array<FeedOwnCapability>
Capabilities the current user has for this feed.
-
#own_follows ⇒ Array<FollowResponse>
Follow relationships where the current user’s feeds are following this feed.
- #own_membership ⇒ FeedMemberResponse
-
#pin_count ⇒ Integer
Number of pinned activities in this feed.
- #reason ⇒ String
- #recommendation_score ⇒ Float
-
#updated_at ⇒ DateTime
When the feed was last updated.
-
#visibility ⇒ String
Visibility setting for the feed.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ FeedSuggestionResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ FeedSuggestionResponse
Initialize with attributes
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 83 def initialize(attributes = {}) super(attributes) @activity_count = attributes[:activity_count] || attributes['activity_count'] @created_at = attributes[:created_at] || attributes['created_at'] @description = attributes[:description] || attributes['description'] @feed = attributes[:feed] || attributes['feed'] @follower_count = attributes[:follower_count] || attributes['follower_count'] @following_count = attributes[:following_count] || attributes['following_count'] @group_id = attributes[:group_id] || attributes['group_id'] @id = attributes[:id] || attributes['id'] @member_count = attributes[:member_count] || attributes['member_count'] @name = attributes[:name] || attributes['name'] @pin_count = attributes[:pin_count] || attributes['pin_count'] @updated_at = attributes[:updated_at] || attributes['updated_at'] @created_by = attributes[:created_by] || attributes['created_by'] @deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil @reason = attributes[:reason] || attributes['reason'] || nil @recommendation_score = attributes[:recommendation_score] || attributes['recommendation_score'] || nil @visibility = attributes[:visibility] || attributes['visibility'] || nil @filter_tags = attributes[:filter_tags] || attributes['filter_tags'] || nil @own_capabilities = attributes[:own_capabilities] || attributes['own_capabilities'] || nil @own_follows = attributes[:own_follows] || attributes['own_follows'] || nil @algorithm_scores = attributes[:algorithm_scores] || attributes['algorithm_scores'] || nil @custom = attributes[:custom] || attributes['custom'] || nil @own_membership = attributes[:own_membership] || attributes['own_membership'] || nil end |
Instance Attribute Details
#activity_count ⇒ Integer
14 15 16 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 14 def activity_count @activity_count end |
#algorithm_scores ⇒ Hash<String, Float>
74 75 76 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 74 def algorithm_scores @algorithm_scores end |
#created_at ⇒ DateTime
Returns When the feed was created.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 17 def created_at @created_at end |
#created_by ⇒ UserResponse
50 51 52 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 50 def created_by @created_by end |
#custom ⇒ Object
Returns Custom data for the feed.
77 78 79 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 77 def custom @custom end |
#deleted_at ⇒ DateTime
Returns When the feed was deleted.
53 54 55 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 53 def deleted_at @deleted_at end |
#description ⇒ String
Returns Description of the feed.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 20 def description @description end |
#feed ⇒ String
Returns Fully qualified feed ID (group_id:id).
23 24 25 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 23 def feed @feed end |
#filter_tags ⇒ Array<String>
Returns Tags used for filtering feeds.
65 66 67 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 65 def @filter_tags end |
#follower_count ⇒ Integer
Returns Number of followers of this feed.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 26 def follower_count @follower_count end |
#following_count ⇒ Integer
Returns Number of feeds this feed follows.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 29 def following_count @following_count end |
#group_id ⇒ String
Returns Group this feed belongs to.
32 33 34 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 32 def group_id @group_id end |
#id ⇒ String
Returns Unique identifier for the feed.
35 36 37 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 35 def id @id end |
#member_count ⇒ Integer
Returns Number of members in this feed.
38 39 40 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 38 def member_count @member_count end |
#name ⇒ String
Returns Name of the feed.
41 42 43 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 41 def name @name end |
#own_capabilities ⇒ Array<FeedOwnCapability>
Returns Capabilities the current user has for this feed.
68 69 70 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 68 def own_capabilities @own_capabilities end |
#own_follows ⇒ Array<FollowResponse>
Returns Follow relationships where the current user’s feeds are following this feed.
71 72 73 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 71 def own_follows @own_follows end |
#own_membership ⇒ FeedMemberResponse
80 81 82 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 80 def own_membership @own_membership end |
#pin_count ⇒ Integer
Returns Number of pinned activities in this feed.
44 45 46 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 44 def pin_count @pin_count end |
#reason ⇒ String
56 57 58 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 56 def reason @reason end |
#recommendation_score ⇒ Float
59 60 61 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 59 def recommendation_score @recommendation_score end |
#updated_at ⇒ DateTime
Returns When the feed was last updated.
47 48 49 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 47 def updated_at @updated_at end |
#visibility ⇒ String
Returns Visibility setting for the feed.
62 63 64 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 62 def visibility @visibility end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 |
# File 'lib/getstream_ruby/generated/models/feed_suggestion_response.rb', line 111 def self.json_field_mappings { activity_count: 'activity_count', created_at: 'created_at', description: 'description', feed: 'feed', follower_count: 'follower_count', following_count: 'following_count', group_id: 'group_id', id: 'id', member_count: 'member_count', name: 'name', pin_count: 'pin_count', updated_at: 'updated_at', created_by: 'created_by', deleted_at: 'deleted_at', reason: 'reason', recommendation_score: 'recommendation_score', visibility: 'visibility', filter_tags: 'filter_tags', own_capabilities: 'own_capabilities', own_follows: 'own_follows', algorithm_scores: 'algorithm_scores', custom: 'custom', own_membership: 'own_membership' } end |