Class: GetStream::Generated::Models::FeedResponse

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



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

def activity_count
  @activity_count
end

#created_atDateTime



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

def created_at
  @created_at
end

#created_byUserResponse



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

def created_by
  @created_by
end

#customObject



71
72
73
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 71

def custom
  @custom
end

#deleted_atDateTime



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

def deleted_at
  @deleted_at
end

#descriptionString



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

def description
  @description
end

#feedString



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

def feed
  @feed
end

#filter_tagsArray<String>



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

def filter_tags
  @filter_tags
end

#follower_countInteger



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

def follower_count
  @follower_count
end

#following_countInteger



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

def following_count
  @following_count
end

#group_idString



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

def group_id
  @group_id
end

#idString



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

def id
  @id
end

#locationLocation



74
75
76
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 74

def location
  @location
end

#member_countInteger



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

def member_count
  @member_count
end

#nameString



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

def name
  @name
end

#own_capabilitiesArray<FeedOwnCapability>



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

def own_capabilities
  @own_capabilities
end

#own_followingsArray<FollowResponse>



65
66
67
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 65

def own_followings
  @own_followings
end

#own_followsArray<FollowResponse>



68
69
70
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 68

def own_follows
  @own_follows
end

#own_membershipFeedMemberResponse



77
78
79
# File 'lib/getstream_ruby/generated/models/feed_response.rb', line 77

def own_membership
  @own_membership
end

#pin_countInteger



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

def pin_count
  @pin_count
end

#updated_atDateTime



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

def updated_at
  @updated_at
end

#visibilityString



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

def visibility
  @visibility
end

Class Method Details

.json_field_mappingsObject

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