Class: GetStream::Generated::Models::UpdateCommentRequest
- Defined in:
- lib/getstream_ruby/generated/models/update_comment_request.rb
Instance Attribute Summary collapse
-
#attachments ⇒ Array<Attachment>
Updated media attachments for the comment.
-
#comment ⇒ String
Updated text content of the comment.
-
#custom ⇒ Object
Updated custom data for the comment.
-
#skip_enrich_url ⇒ Boolean
Whether to skip URL enrichment for this comment.
- #skip_push ⇒ Boolean
- #user ⇒ UserRequest
- #user_id ⇒ String
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ UpdateCommentRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ UpdateCommentRequest
Initialize with attributes
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/getstream_ruby/generated/models/update_comment_request.rb', line 35 def initialize(attributes = {}) super(attributes) @comment = attributes[:comment] || attributes['comment'] || nil @skip_enrich_url = attributes[:skip_enrich_url] || attributes['skip_enrich_url'] || nil @skip_push = attributes[:skip_push] || attributes['skip_push'] || nil @user_id = attributes[:user_id] || attributes['user_id'] || nil @attachments = attributes[:attachments] || attributes['attachments'] || nil @custom = attributes[:custom] || attributes['custom'] || nil @user = attributes[:user] || attributes['user'] || nil end |
Instance Attribute Details
#attachments ⇒ Array<Attachment>
Returns Updated media attachments for the comment. Providing this field will replace all existing attachments.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/update_comment_request.rb', line 26 def @attachments end |
#comment ⇒ String
Returns Updated text content of the comment.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/update_comment_request.rb', line 14 def comment @comment end |
#custom ⇒ Object
Returns Updated custom data for the comment.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/update_comment_request.rb', line 29 def custom @custom end |
#skip_enrich_url ⇒ Boolean
Returns Whether to skip URL enrichment for this comment.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/update_comment_request.rb', line 17 def skip_enrich_url @skip_enrich_url end |
#skip_push ⇒ Boolean
20 21 22 |
# File 'lib/getstream_ruby/generated/models/update_comment_request.rb', line 20 def skip_push @skip_push end |
#user ⇒ UserRequest
32 33 34 |
# File 'lib/getstream_ruby/generated/models/update_comment_request.rb', line 32 def user @user end |
#user_id ⇒ String
23 24 25 |
# File 'lib/getstream_ruby/generated/models/update_comment_request.rb', line 23 def user_id @user_id end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/getstream_ruby/generated/models/update_comment_request.rb', line 47 def self.json_field_mappings { comment: 'comment', skip_enrich_url: 'skip_enrich_url', skip_push: 'skip_push', user_id: 'user_id', attachments: 'attachments', custom: 'custom', user: 'user' } end |