Class: GetStream::Generated::Models::FollowResponse
- Defined in:
- lib/getstream_ruby/generated/models/follow_response.rb
Instance Attribute Summary collapse
-
#created_at ⇒ DateTime
When the follow relationship was created.
-
#custom ⇒ Object
Custom data for the follow relationship.
-
#follower_role ⇒ String
Role of the follower (source user) in the follow relationship.
-
#push_preference ⇒ String
Push preference for notifications.
-
#request_accepted_at ⇒ DateTime
When the follow request was accepted.
-
#request_rejected_at ⇒ DateTime
When the follow request was rejected.
- #source_feed ⇒ FeedResponse
-
#status ⇒ String
Status of the follow relationship.
- #target_feed ⇒ FeedResponse
-
#updated_at ⇒ DateTime
When the follow relationship was last updated.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ FollowResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ FollowResponse
Initialize with attributes
44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/getstream_ruby/generated/models/follow_response.rb', line 44 def initialize(attributes = {}) super(attributes) @created_at = attributes[:created_at] || attributes['created_at'] @follower_role = attributes[:follower_role] || attributes['follower_role'] @push_preference = attributes[:push_preference] || attributes['push_preference'] @status = attributes[:status] || attributes['status'] @updated_at = attributes[:updated_at] || attributes['updated_at'] @source_feed = attributes[:source_feed] || attributes['source_feed'] @target_feed = attributes[:target_feed] || attributes['target_feed'] @request_accepted_at = attributes[:request_accepted_at] || attributes['request_accepted_at'] || nil @request_rejected_at = attributes[:request_rejected_at] || attributes['request_rejected_at'] || nil @custom = attributes[:custom] || attributes['custom'] || nil end |
Instance Attribute Details
#created_at ⇒ DateTime
Returns When the follow relationship was created.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/follow_response.rb', line 14 def created_at @created_at end |
#custom ⇒ Object
Returns Custom data for the follow relationship.
41 42 43 |
# File 'lib/getstream_ruby/generated/models/follow_response.rb', line 41 def custom @custom end |
#follower_role ⇒ String
Returns Role of the follower (source user) in the follow relationship.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/follow_response.rb', line 17 def follower_role @follower_role end |
#push_preference ⇒ String
Returns Push preference for notifications.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/follow_response.rb', line 20 def push_preference @push_preference end |
#request_accepted_at ⇒ DateTime
Returns When the follow request was accepted.
35 36 37 |
# File 'lib/getstream_ruby/generated/models/follow_response.rb', line 35 def request_accepted_at @request_accepted_at end |
#request_rejected_at ⇒ DateTime
Returns When the follow request was rejected.
38 39 40 |
# File 'lib/getstream_ruby/generated/models/follow_response.rb', line 38 def request_rejected_at @request_rejected_at end |
#source_feed ⇒ FeedResponse
29 30 31 |
# File 'lib/getstream_ruby/generated/models/follow_response.rb', line 29 def source_feed @source_feed end |
#status ⇒ String
Returns Status of the follow relationship.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/follow_response.rb', line 23 def status @status end |
#target_feed ⇒ FeedResponse
32 33 34 |
# File 'lib/getstream_ruby/generated/models/follow_response.rb', line 32 def target_feed @target_feed end |
#updated_at ⇒ DateTime
Returns When the follow relationship was last updated.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/follow_response.rb', line 26 def updated_at @updated_at end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/getstream_ruby/generated/models/follow_response.rb', line 59 def self.json_field_mappings { created_at: 'created_at', follower_role: 'follower_role', push_preference: 'push_preference', status: 'status', updated_at: 'updated_at', source_feed: 'source_feed', target_feed: 'target_feed', request_accepted_at: 'request_accepted_at', request_rejected_at: 'request_rejected_at', custom: 'custom' } end |