Class: GetStream::Generated::Models::FeedResponse
- Defined in:
- lib/getstream_ruby/generated/models/feed_response.rb
Instance Attribute Summary collapse
- #activity_count ⇒ Integer
-
#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.
- #location ⇒ Location
-
#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_followings ⇒ Array<FollowResponse>
Follow relationships where the feed owner’s feeds are following the current user's feeds.
-
#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.
-
#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 = {}) ⇒ FeedResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ FeedResponse
Initialize with attributes
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 80 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 @visibility = attributes[:visibility] || attributes['visibility'] || nil = attributes[:filter_tags] || attributes['filter_tags'] || nil @own_capabilities = attributes[:own_capabilities] || attributes['own_capabilities'] || nil @own_followings = attributes[:own_followings] || attributes['own_followings'] || nil @own_follows = attributes[:own_follows] || attributes['own_follows'] || nil @custom = attributes[:custom] || attributes['custom'] || nil @location = attributes[:location] || attributes['location'] || 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_response.rb', line 14 def activity_count @activity_count end |
#created_at ⇒ DateTime
17 18 19 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 17 def created_at @created_at end |
#created_by ⇒ UserResponse
50 51 52 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 50 def created_by @created_by end |
#custom ⇒ Object
71 72 73 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 71 def custom @custom end |
#deleted_at ⇒ DateTime
53 54 55 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 53 def deleted_at @deleted_at end |
#description ⇒ String
20 21 22 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 20 def description @description end |
#feed ⇒ String
23 24 25 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 23 def feed @feed end |
#filter_tags ⇒ Array<String>
59 60 61 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 59 def end |
#follower_count ⇒ Integer
26 27 28 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 26 def follower_count @follower_count end |
#following_count ⇒ Integer
29 30 31 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 29 def following_count @following_count end |
#group_id ⇒ String
32 33 34 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 32 def group_id @group_id end |
#id ⇒ String
35 36 37 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 35 def id @id end |
#location ⇒ Location
74 75 76 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 74 def location @location end |
#member_count ⇒ Integer
38 39 40 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 38 def member_count @member_count end |
#name ⇒ String
41 42 43 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 41 def name @name end |
#own_capabilities ⇒ Array<FeedOwnCapability>
62 63 64 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 62 def own_capabilities @own_capabilities end |
#own_followings ⇒ Array<FollowResponse>
65 66 67 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 65 def own_followings @own_followings end |
#own_follows ⇒ Array<FollowResponse>
68 69 70 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 68 def own_follows @own_follows end |
#own_membership ⇒ FeedMemberResponse
77 78 79 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 77 def own_membership @own_membership end |
#pin_count ⇒ Integer
44 45 46 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 44 def pin_count @pin_count end |
#updated_at ⇒ DateTime
47 48 49 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 47 def updated_at @updated_at end |
#visibility ⇒ String
56 57 58 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 56 def visibility @visibility end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 107 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', visibility: 'visibility', filter_tags: 'filter_tags', own_capabilities: 'own_capabilities', own_followings: 'own_followings', own_follows: 'own_follows', custom: 'custom', location: 'location', own_membership: 'own_membership' } end |