Class: GetStream::Generated::Models::FeedOwnData
- Defined in:
- lib/getstream_ruby/generated/models/feed_own_data.rb
Instance Attribute Summary collapse
-
#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
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ FeedOwnData
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ FeedOwnData
Initialize with attributes
23 24 25 26 27 28 |
# File 'lib/getstream_ruby/generated/models/feed_own_data.rb', line 23 def initialize(attributes = {}) super(attributes) @own_capabilities = attributes[:own_capabilities] || attributes['own_capabilities'] || nil @own_follows = attributes[:own_follows] || attributes['own_follows'] || nil @own_membership = attributes[:own_membership] || attributes['own_membership'] || nil end |
Instance Attribute Details
#own_capabilities ⇒ Array<FeedOwnCapability>
Returns Capabilities the current user has for this feed.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/feed_own_data.rb', line 14 def own_capabilities @own_capabilities end |
#own_follows ⇒ Array<FollowResponse>
Returns Follow relationships where the current user’s feeds are following this feed.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/feed_own_data.rb', line 17 def own_follows @own_follows end |
#own_membership ⇒ FeedMemberResponse
20 21 22 |
# File 'lib/getstream_ruby/generated/models/feed_own_data.rb', line 20 def own_membership @own_membership end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
31 32 33 34 35 36 37 |
# File 'lib/getstream_ruby/generated/models/feed_own_data.rb', line 31 def self.json_field_mappings { own_capabilities: 'own_capabilities', own_follows: 'own_follows', own_membership: 'own_membership' } end |