Class: Urbit::CloseMessage
- Defined in:
- lib/urbit/close_message.rb
Instance Attribute Summary
Attributes inherited from Message
#app, #channel, #contents, #id, #mark
Instance Method Summary collapse
- #action ⇒ Object
-
#initialize(channel:) ⇒ CloseMessage
constructor
A new instance of CloseMessage.
- #to_h ⇒ Object
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
#action ⇒ Object
7 8 9 |
# File 'lib/urbit/close_message.rb', line 7 def action "delete" end |
#to_h ⇒ Object
11 12 13 |
# File 'lib/urbit/close_message.rb', line 11 def to_h {id: self.id, action: self.action} end |