Class: GetStream::Generated::Models::GetOrCreateFeedResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/get_or_create_feed_response.rb

Overview

Basic response information

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 = {}) ⇒ GetOrCreateFeedResponse

Initialize with attributes



59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/getstream_ruby/generated/models/get_or_create_feed_response.rb', line 59

def initialize(attributes = {})
  super(attributes)
  @created = attributes[:created] || attributes['created']
  @duration = attributes[:duration] || attributes['duration']
  @activities = attributes[:activities] || attributes['activities']
  @aggregated_activities = attributes[:aggregated_activities] || attributes['aggregated_activities']
  @followers = attributes[:followers] || attributes['followers']
  @following = attributes[:following] || attributes['following']
  @members = attributes[:members] || attributes['members']
  @pinned_activities = attributes[:pinned_activities] || attributes['pinned_activities']
  @feed = attributes[:feed] || attributes['feed']
  @next = attributes[:next] || attributes['next'] || nil
  @prev = attributes[:prev] || attributes['prev'] || nil
  @followers_pagination = attributes[:followers_pagination] || attributes['followers_pagination'] || nil
  @following_pagination = attributes[:following_pagination] || attributes['following_pagination'] || nil
  @member_pagination = attributes[:member_pagination] || attributes['member_pagination'] || nil
  @notification_status = attributes[:notification_status] || attributes['notification_status'] || nil
end

Instance Attribute Details

#activitiesArray<ActivityResponse>

Returns:



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

def activities
  @activities
end

#aggregated_activitiesArray<AggregatedActivityResponse>

Returns:



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

def aggregated_activities
  @aggregated_activities
end

#createdBoolean

Returns:

  • (Boolean)


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

def created
  @created
end

#durationString

Returns Duration of the request in milliseconds.

Returns:

  • (String)

    Duration of the request in milliseconds



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

def duration
  @duration
end

#feedFeedResponse

Returns:



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

def feed
  @feed
end

#followersArray<FollowResponse>

Returns:



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

def followers
  @followers
end

#followers_paginationPagerResponse

Returns:



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

def followers_pagination
  @followers_pagination
end

#followingArray<FollowResponse>

Returns:



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

def following
  @following
end

#following_paginationPagerResponse

Returns:



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

def following_pagination
  @following_pagination
end

#member_paginationPagerResponse

Returns:



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

def member_pagination
  @member_pagination
end

#membersArray<FeedMemberResponse>

Returns:



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

def members
  @members
end

#nextString

Returns:

  • (String)


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

def next
  @next
end

#notification_statusNotificationStatusResponse



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

def notification_status
  @notification_status
end

#pinned_activitiesArray<ActivityPinResponse>

Returns:



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

def pinned_activities
  @pinned_activities
end

#prevString

Returns:

  • (String)


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

def prev
  @prev
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# File 'lib/getstream_ruby/generated/models/get_or_create_feed_response.rb', line 79

def self.json_field_mappings
  {
    created: 'created',
    duration: 'duration',
    activities: 'activities',
    aggregated_activities: 'aggregated_activities',
    followers: 'followers',
    following: 'following',
    members: 'members',
    pinned_activities: 'pinned_activities',
    feed: 'feed',
    next: 'next',
    prev: 'prev',
    followers_pagination: 'followers_pagination',
    following_pagination: 'following_pagination',
    member_pagination: 'member_pagination',
    notification_status: 'notification_status'
  }
end