Class: CommandTower::Messaging::Contract::Requests::FindCommunication

Inherits:
Data
  • Object
show all
Defined in:
app/services/command_tower/messaging/contract/requests/find_communication.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#communication_idObject (readonly)

Returns the value of attribute communication_id

Returns:

  • (Object)

    the current value of communication_id



7
8
9
# File 'app/services/command_tower/messaging/contract/requests/find_communication.rb', line 7

def communication_id
  @communication_id
end

#recipient_idObject (readonly)

Returns the value of attribute recipient_id

Returns:

  • (Object)

    the current value of recipient_id



7
8
9
# File 'app/services/command_tower/messaging/contract/requests/find_communication.rb', line 7

def recipient_id
  @recipient_id
end

Class Method Details

.build(communication_id:, recipient_id: nil) ⇒ Object



11
12
13
14
15
16
# File 'app/services/command_tower/messaging/contract/requests/find_communication.rb', line 11

def self.build(communication_id:, recipient_id: nil)
  new(
    communication_id:,
    recipient_id:,
  ).freeze
end