class Pepito::Source

Source for a message, where it comes from, where it should go

Attributes

adapter[R]

Adapter that received the message. @return [Pepito::Adapter]

private_message[R]

Whether the message is private or not @return [Boolean]

room[R]

Room where the message originated @return [String]

user[R]

User that sent the message. @return [String]

Public Class Methods

new(adapter, user, room, private_message) click to toggle source

@param adapter [Adapter] The adapter that received the message. @param user [String] The user that sent the message. @param room [String] The room where the message was sent from. @param private_message [Boolean] Whether the message is private or not. @return [void]

# File lib/pepito/source.rb, line 25
def initialize(adapter, user, room, private_message)
  @adapter = adapter
  @user = user
  @room = room
  @private_message = private_message
end