Class: GetStream::Generated::Models::FollowRequest
- Defined in:
- lib/getstream_ruby/generated/models/follow_request.rb
Instance Attribute Summary collapse
-
#create_notification_activity ⇒ Boolean
Whether to create a notification activity for this follow.
-
#custom ⇒ Object
Custom data for the follow relationship.
-
#push_preference ⇒ String
Push preference for the follow relationship.
- #skip_push ⇒ Boolean
-
#source ⇒ String
Fully qualified ID of the source feed.
-
#target ⇒ String
Fully qualified ID of the target feed.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ FollowRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ FollowRequest
Initialize with attributes
32 33 34 35 36 37 38 39 40 |
# File 'lib/getstream_ruby/generated/models/follow_request.rb', line 32 def initialize(attributes = {}) super(attributes) @source = attributes[:source] || attributes['source'] @target = attributes[:target] || attributes['target'] @create_notification_activity = attributes[:create_notification_activity] || attributes['create_notification_activity'] || nil @push_preference = attributes[:push_preference] || attributes['push_preference'] || nil @skip_push = attributes[:skip_push] || attributes['skip_push'] || nil @custom = attributes[:custom] || attributes['custom'] || nil end |
Instance Attribute Details
#create_notification_activity ⇒ Boolean
Returns Whether to create a notification activity for this follow.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/follow_request.rb', line 20 def create_notification_activity @create_notification_activity end |
#custom ⇒ Object
Returns Custom data for the follow relationship.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/follow_request.rb', line 29 def custom @custom end |
#push_preference ⇒ String
Returns Push preference for the follow relationship.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/follow_request.rb', line 23 def push_preference @push_preference end |
#skip_push ⇒ Boolean
26 27 28 |
# File 'lib/getstream_ruby/generated/models/follow_request.rb', line 26 def skip_push @skip_push end |
#source ⇒ String
Returns Fully qualified ID of the source feed.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/follow_request.rb', line 14 def source @source end |
#target ⇒ String
Returns Fully qualified ID of the target feed.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/follow_request.rb', line 17 def target @target end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
43 44 45 46 47 48 49 50 51 52 |
# File 'lib/getstream_ruby/generated/models/follow_request.rb', line 43 def self.json_field_mappings { source: 'source', target: 'target', create_notification_activity: 'create_notification_activity', push_preference: 'push_preference', skip_push: 'skip_push', custom: 'custom' } end |