Class: GetStream::Generated::Models::FeedsFeedResponse
- Defined in:
- lib/getstream_ruby/generated/models/feeds_feed_response.rb
Instance Attribute Summary collapse
- #activity_count ⇒ Integer
- #created_at ⇒ DateTime
- #created_by ⇒ UserResponse
- #custom ⇒ Object
- #deleted_at ⇒ DateTime
- #description ⇒ String
- #feed ⇒ String
- #filter_tags ⇒ Array<String>
- #follower_count ⇒ Integer
- #following_count ⇒ Integer
- #group_id ⇒ String
- #id ⇒ String
- #location ⇒ FeedsActivityLocation
- #member_count ⇒ Integer
- #name ⇒ String
- #pin_count ⇒ Integer
- #updated_at ⇒ DateTime
- #visibility ⇒ String
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ FeedsFeedResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ FeedsFeedResponse
Initialize with attributes
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/getstream_ruby/generated/models/feeds_feed_response.rb', line 68 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 @filter_tags = attributes[:filter_tags] || attributes['filter_tags'] || nil @custom = attributes[:custom] || attributes['custom'] || nil @location = attributes[:location] || attributes['location'] || nil end |
Instance Attribute Details
#activity_count ⇒ Integer
14 15 16 |
# File 'lib/getstream_ruby/generated/models/feeds_feed_response.rb', line 14 def activity_count @activity_count end |
#created_at ⇒ DateTime
17 18 19 |
# File 'lib/getstream_ruby/generated/models/feeds_feed_response.rb', line 17 def created_at @created_at end |
#created_by ⇒ UserResponse
50 51 52 |
# File 'lib/getstream_ruby/generated/models/feeds_feed_response.rb', line 50 def created_by @created_by end |
#custom ⇒ Object
62 63 64 |
# File 'lib/getstream_ruby/generated/models/feeds_feed_response.rb', line 62 def custom @custom end |
#deleted_at ⇒ DateTime
53 54 55 |
# File 'lib/getstream_ruby/generated/models/feeds_feed_response.rb', line 53 def deleted_at @deleted_at end |
#description ⇒ String
20 21 22 |
# File 'lib/getstream_ruby/generated/models/feeds_feed_response.rb', line 20 def description @description end |
#feed ⇒ String
23 24 25 |
# File 'lib/getstream_ruby/generated/models/feeds_feed_response.rb', line 23 def feed @feed end |
#filter_tags ⇒ Array<String>
59 60 61 |
# File 'lib/getstream_ruby/generated/models/feeds_feed_response.rb', line 59 def @filter_tags end |
#follower_count ⇒ Integer
26 27 28 |
# File 'lib/getstream_ruby/generated/models/feeds_feed_response.rb', line 26 def follower_count @follower_count end |
#following_count ⇒ Integer
29 30 31 |
# File 'lib/getstream_ruby/generated/models/feeds_feed_response.rb', line 29 def following_count @following_count end |
#group_id ⇒ String
32 33 34 |
# File 'lib/getstream_ruby/generated/models/feeds_feed_response.rb', line 32 def group_id @group_id end |
#id ⇒ String
35 36 37 |
# File 'lib/getstream_ruby/generated/models/feeds_feed_response.rb', line 35 def id @id end |
#location ⇒ FeedsActivityLocation
65 66 67 |
# File 'lib/getstream_ruby/generated/models/feeds_feed_response.rb', line 65 def location @location end |
#member_count ⇒ Integer
38 39 40 |
# File 'lib/getstream_ruby/generated/models/feeds_feed_response.rb', line 38 def member_count @member_count end |
#name ⇒ String
41 42 43 |
# File 'lib/getstream_ruby/generated/models/feeds_feed_response.rb', line 41 def name @name end |
#pin_count ⇒ Integer
44 45 46 |
# File 'lib/getstream_ruby/generated/models/feeds_feed_response.rb', line 44 def pin_count @pin_count end |
#updated_at ⇒ DateTime
47 48 49 |
# File 'lib/getstream_ruby/generated/models/feeds_feed_response.rb', line 47 def updated_at @updated_at end |
#visibility ⇒ String
56 57 58 |
# File 'lib/getstream_ruby/generated/models/feeds_feed_response.rb', line 56 def visibility @visibility end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/getstream_ruby/generated/models/feeds_feed_response.rb', line 91 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', custom: 'custom', location: 'location' } end |