Class: CommandTower::Messaging::Accept::ChannelDeliveryResult

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#channel_keyObject (readonly)

Returns the value of attribute channel_key

Returns:

  • (Object)

    the current value of channel_key



6
7
8
# File 'app/services/command_tower/messaging/accept/channel_delivery_result.rb', line 6

def channel_key
  @channel_key
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



6
7
8
# File 'app/services/command_tower/messaging/accept/channel_delivery_result.rb', line 6

def id
  @id
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



6
7
8
# File 'app/services/command_tower/messaging/accept/channel_delivery_result.rb', line 6

def status
  @status
end

Class Method Details

.build(id:, channel_key:, status:) ⇒ Object



7
8
9
# File 'app/services/command_tower/messaging/accept/channel_delivery_result.rb', line 7

def self.build(id:, channel_key:, status:)
  new(id:, channel_key: channel_key.to_s, status: status.to_s).freeze
end