class Slacks::GuestChannel
Public Class Methods
new(attributes)
click to toggle source
# File lib/slacks/guest_channel.rb, line 11 def initialize(attributes) @id = attributes["channel_id"] @name = attributes["channel_name"] @type = :channel @type = :group if id.start_with?("G") @type = :direct_message if id.start_with?("D") end
Public Instance Methods
guest?()
click to toggle source
# File lib/slacks/guest_channel.rb, line 29 def guest? true end
random_reply(*args)
click to toggle source
# File lib/slacks/guest_channel.rb, line 25 def random_reply(*args) raise NotInChannelError, self end
reply(*args)
click to toggle source
# File lib/slacks/guest_channel.rb, line 20 def reply(*args) raise NotInChannelError, self end
Also aliased as: say