Class: GetStream::Generated::Models::FeedOwnData

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/feed_own_data.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 = {}) ⇒ FeedOwnData

Initialize with attributes



26
27
28
29
30
31
32
# File 'lib/getstream_ruby/generated/models/feed_own_data.rb', line 26

def initialize(attributes = {})
  super(attributes)
  @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
  @own_membership = attributes[:own_membership] || attributes['own_membership'] || nil
end

Instance Attribute Details

#own_capabilitiesArray<FeedOwnCapability>

Returns Capabilities the current user has for this feed.

Returns:



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

def own_capabilities
  @own_capabilities
end

#own_followingsArray<FollowResponse>

Returns Follow relationships where the feed owner’s feeds are following the current user’s feeds (up to 5 total).

Returns:

  • (Array<FollowResponse>)

    Follow relationships where the feed owner’s feeds are following the current user’s feeds (up to 5 total)



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

def own_followings
  @own_followings
end

#own_followsArray<FollowResponse>

Returns Follow relationships where the current user’s feeds are following this feed.

Returns:

  • (Array<FollowResponse>)

    Follow relationships where the current user’s feeds are following this feed



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

def own_follows
  @own_follows
end

#own_membershipFeedMemberResponse

Returns:



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

def own_membership
  @own_membership
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



35
36
37
38
39
40
41
42
# File 'lib/getstream_ruby/generated/models/feed_own_data.rb', line 35

def self.json_field_mappings
  {
    own_capabilities: 'own_capabilities',
    own_followings: 'own_followings',
    own_follows: 'own_follows',
    own_membership: 'own_membership'
  }
end