Class: CommandTower::Messaging::Inbox::BulkResult
- Inherits:
-
Data
- Object
- Data
- CommandTower::Messaging::Inbox::BulkResult
- Defined in:
- app/services/command_tower/messaging/inbox/bulk_result.rb
Instance Attribute Summary collapse
-
#changed_count ⇒ Object
readonly
Returns the value of attribute changed_count.
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#ids ⇒ Object
readonly
Returns the value of attribute ids.
Class Method Summary collapse
Instance Attribute Details
#changed_count ⇒ Object (readonly)
Returns the value of attribute changed_count
6 7 8 |
# File 'app/services/command_tower/messaging/inbox/bulk_result.rb', line 6 def changed_count @changed_count end |
#count ⇒ Object (readonly)
Returns the value of attribute count
6 7 8 |
# File 'app/services/command_tower/messaging/inbox/bulk_result.rb', line 6 def count @count end |
#ids ⇒ Object (readonly)
Returns the value of attribute ids
6 7 8 |
# File 'app/services/command_tower/messaging/inbox/bulk_result.rb', line 6 def ids @ids end |
Class Method Details
.build(ids:, changed_count:) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'app/services/command_tower/messaging/inbox/bulk_result.rb', line 7 def self.build(ids:, changed_count:) ids = Array(ids).freeze new( ids:, count: ids.size, changed_count: Integer(changed_count), ).freeze end |