class Urbit::SubscribeMessage

Attributes

path[R]

Public Class Methods

new(channel:, app:, path:) click to toggle source
Calls superclass method Urbit::Message::new
# File lib/urbit/subscribe_message.rb, line 5
def initialize(channel:, app:, path:)
  super(channel: channel, app: app)
  @path = path
end

Public Instance Methods

action() click to toggle source
# File lib/urbit/subscribe_message.rb, line 10
def action
  "subscribe"
end
to_h() click to toggle source
# File lib/urbit/subscribe_message.rb, line 14
def to_h
  {action: self.action, app: self.app, id: self.id, path: self.path, ship: self.ship.untilded_name}
end