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