Class: CommandTower::Messaging::Inbox::UnreadCountResult

Inherits:
Data
  • Object
show all
Defined in:
app/services/command_tower/messaging/inbox/unread_count_result.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#countObject (readonly)

Returns the value of attribute count

Returns:

  • (Object)

    the current value of count



6
7
8
# File 'app/services/command_tower/messaging/inbox/unread_count_result.rb', line 6

def count
  @count
end

#recipient_idObject (readonly)

Returns the value of attribute recipient_id

Returns:

  • (Object)

    the current value of 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