Class: GetStream::Generated::Models::AddActivityResponse
- Defined in:
- lib/getstream_ruby/generated/models/add_activity_response.rb
Instance Attribute Summary collapse
- #activity ⇒ ActivityResponse
- #duration ⇒ String
-
#mention_notifications_created ⇒ Integer
Number of mention notification activities created for mentioned users.
-
#skipped_existing ⇒ Array<String>
Contains the activity ID when skip_existing is true and the activity already existed, so it was left unchanged.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ AddActivityResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ AddActivityResponse
Initialize with attributes
26 27 28 29 30 31 32 |
# File 'lib/getstream_ruby/generated/models/add_activity_response.rb', line 26 def initialize(attributes = {}) super(attributes) @duration = attributes.fetch(:duration) { attributes.fetch('duration', nil) } @activity = attributes.fetch(:activity) { attributes.fetch('activity', nil) } @mention_notifications_created = attributes.fetch(:mention_notifications_created) { attributes.fetch('mention_notifications_created', nil) } @skipped_existing = attributes.fetch(:skipped_existing) { attributes.fetch('skipped_existing', nil) } end |
Instance Attribute Details
#activity ⇒ ActivityResponse
17 18 19 |
# File 'lib/getstream_ruby/generated/models/add_activity_response.rb', line 17 def activity @activity end |
#duration ⇒ String
14 15 16 |
# File 'lib/getstream_ruby/generated/models/add_activity_response.rb', line 14 def duration @duration end |
#mention_notifications_created ⇒ Integer
Returns Number of mention notification activities created for mentioned users.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/add_activity_response.rb', line 20 def mention_notifications_created @mention_notifications_created end |
#skipped_existing ⇒ Array<String>
Returns Contains the activity ID when skip_existing is true and the activity already existed, so it was left unchanged.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/add_activity_response.rb', line 23 def skipped_existing @skipped_existing end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
35 36 37 38 39 40 41 42 |
# File 'lib/getstream_ruby/generated/models/add_activity_response.rb', line 35 def self.json_field_mappings { duration: 'duration', activity: 'activity', mention_notifications_created: 'mention_notifications_created', skipped_existing: 'skipped_existing' } end |