Class: GetStream::Generated::Models::UpdateActivityRequest
- Defined in:
- lib/getstream_ruby/generated/models/update_activity_request.rb
Instance Attribute Summary collapse
-
#attachments ⇒ Array<Attachment>
List of attachments for the activity.
-
#collection_refs ⇒ Array<String>
Collections that this activity references.
-
#custom ⇒ Object
Custom data for the activity.
-
#expires_at ⇒ DateTime
Time when the activity will expire.
-
#feeds ⇒ Array<String>
List of feeds the activity is present in.
-
#filter_tags ⇒ Array<String>
Tags used for filtering the activity.
-
#interest_tags ⇒ Array<String>
Tags indicating interest categories.
- #location ⇒ ActivityLocation
-
#poll_id ⇒ String
Poll ID.
-
#restrict_replies ⇒ String
Controls who can add comments/replies to this activity.
-
#skip_enrich_url ⇒ Boolean
Whether to skip URL enrichment for the activity.
-
#text ⇒ String
The text content of the activity.
- #user ⇒ UserRequest
- #user_id ⇒ String
-
#visibility ⇒ String
Visibility setting for the activity.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ UpdateActivityRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ UpdateActivityRequest
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/update_activity_request.rb', line 59 def initialize(attributes = {}) super(attributes) @expires_at = attributes[:expires_at] || attributes['expires_at'] || nil @poll_id = attributes[:poll_id] || attributes['poll_id'] || nil @restrict_replies = attributes[:restrict_replies] || attributes['restrict_replies'] || nil @skip_enrich_url = attributes[:skip_enrich_url] || attributes['skip_enrich_url'] || nil @text = attributes[:text] || attributes['text'] || nil @user_id = attributes[:user_id] || attributes['user_id'] || nil @visibility = attributes[:visibility] || attributes['visibility'] || nil = attributes[:attachments] || attributes['attachments'] || nil @collection_refs = attributes[:collection_refs] || attributes['collection_refs'] || nil @feeds = attributes[:feeds] || attributes['feeds'] || nil = attributes[:filter_tags] || attributes['filter_tags'] || nil = attributes[:interest_tags] || attributes['interest_tags'] || nil @custom = attributes[:custom] || attributes['custom'] || nil @location = attributes[:location] || attributes['location'] || nil @user = attributes[:user] || attributes['user'] || nil end |
Instance Attribute Details
#attachments ⇒ Array<Attachment>
Returns List of attachments for the activity.
35 36 37 |
# File 'lib/getstream_ruby/generated/models/update_activity_request.rb', line 35 def end |
#collection_refs ⇒ Array<String>
Returns Collections that this activity references.
38 39 40 |
# File 'lib/getstream_ruby/generated/models/update_activity_request.rb', line 38 def collection_refs @collection_refs end |
#custom ⇒ Object
Returns Custom data for the activity.
50 51 52 |
# File 'lib/getstream_ruby/generated/models/update_activity_request.rb', line 50 def custom @custom end |
#expires_at ⇒ DateTime
Returns Time when the activity will expire.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/update_activity_request.rb', line 14 def expires_at @expires_at end |
#feeds ⇒ Array<String>
Returns List of feeds the activity is present in.
41 42 43 |
# File 'lib/getstream_ruby/generated/models/update_activity_request.rb', line 41 def feeds @feeds end |
#filter_tags ⇒ Array<String>
Returns Tags used for filtering the activity.
44 45 46 |
# File 'lib/getstream_ruby/generated/models/update_activity_request.rb', line 44 def end |
#interest_tags ⇒ Array<String>
Returns Tags indicating interest categories.
47 48 49 |
# File 'lib/getstream_ruby/generated/models/update_activity_request.rb', line 47 def end |
#location ⇒ ActivityLocation
53 54 55 |
# File 'lib/getstream_ruby/generated/models/update_activity_request.rb', line 53 def location @location end |
#poll_id ⇒ String
Returns Poll ID.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/update_activity_request.rb', line 17 def poll_id @poll_id end |
#restrict_replies ⇒ String
Returns Controls who can add comments/replies to this activity. Options: ‘everyone’ (default - anyone can reply), ‘people_i_follow’ (only people the activity creator follows can reply), ‘nobody’ (no one can reply).
20 21 22 |
# File 'lib/getstream_ruby/generated/models/update_activity_request.rb', line 20 def restrict_replies @restrict_replies end |
#skip_enrich_url ⇒ Boolean
Returns Whether to skip URL enrichment for the activity.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/update_activity_request.rb', line 23 def skip_enrich_url @skip_enrich_url end |
#text ⇒ String
Returns The text content of the activity.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/update_activity_request.rb', line 26 def text @text end |
#user ⇒ UserRequest
56 57 58 |
# File 'lib/getstream_ruby/generated/models/update_activity_request.rb', line 56 def user @user end |
#user_id ⇒ String
29 30 31 |
# File 'lib/getstream_ruby/generated/models/update_activity_request.rb', line 29 def user_id @user_id end |
#visibility ⇒ String
Returns Visibility setting for the activity.
32 33 34 |
# File 'lib/getstream_ruby/generated/models/update_activity_request.rb', line 32 def visibility @visibility end |
Class Method Details
.json_field_mappings ⇒ Object
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/update_activity_request.rb', line 79 def self.json_field_mappings { expires_at: 'expires_at', poll_id: 'poll_id', restrict_replies: 'restrict_replies', skip_enrich_url: 'skip_enrich_url', text: 'text', user_id: 'user_id', visibility: 'visibility', attachments: 'attachments', collection_refs: 'collection_refs', feeds: 'feeds', filter_tags: 'filter_tags', interest_tags: 'interest_tags', custom: 'custom', location: 'location', user: 'user' } end |