Class: Urbit::CloseMessage

Inherits:
Message
  • Object
show all
Defined in:
lib/urbit/close_message.rb

Instance Attribute Summary

Attributes inherited from Message

#app, #channel, #contents, #id, #mark

Instance Method Summary collapse

Methods inherited from Message

#channel_url, #request_body, #ship, #to_a, #to_s, #transmit

Constructor Details

#initialize(channel:) ⇒ CloseMessage

Returns a new instance of CloseMessage.



3
4
5
# File 'lib/urbit/close_message.rb', line 3

def initialize(channel:)
  super(channel: channel)
end

Instance Method Details

#actionObject



7
8
9
# File 'lib/urbit/close_message.rb', line 7

def action
  "delete"
end

#to_hObject



11
12
13
# File 'lib/urbit/close_message.rb', line 11

def to_h
  {id: self.id, action: self.action}
end