class Urbit::AckMessage

Attributes

ack_id[R]

Public Class Methods

new(channel:, sse_message_id:) click to toggle source
Calls superclass method
# File lib/urbit/ack_message.rb, line 5
def initialize(channel:, sse_message_id:)
  super(channel: channel)
  @ack_id  = sse_message_id
end

Public Instance Methods

action() click to toggle source
# File lib/urbit/ack_message.rb, line 10
def action
  "ack"
end
to_h() click to toggle source
# File lib/urbit/ack_message.rb, line 14
def to_h
  # Need to use the older hash style due to the key having a dash.
  {'id' => self.id, 'action' => self.action, 'event-id' => self.ack_id}
end
to_s() click to toggle source
# File lib/urbit/ack_message.rb, line 19
def to_s
  "an AckMessage(#{self.to_h})"
end