Class: Flamethrower::MockConnection

Inherits:
Object
  • Object
show all
Includes:
Connection
Defined in:
lib/flamethrower/server/mock_connection.rb

Constant Summary

Constants included from Irc::Codes

Irc::Codes::ERR_BADCHANNELKEY, Irc::Codes::ERR_UNKNOWNCOMMAND, Irc::Codes::RPL_CHANNELMODEIS, Irc::Codes::RPL_ENDOFMOTD, Irc::Codes::RPL_ENDOFNAMES, Irc::Codes::RPL_ENDOFWHO, Irc::Codes::RPL_MOTD, Irc::Codes::RPL_MOTDSTART, Irc::Codes::RPL_NAMEREPLY, Irc::Codes::RPL_NOWAWAY, Irc::Codes::RPL_TOPIC, Irc::Codes::RPL_UMODEIS, Irc::Codes::RPL_UNAWAY, Irc::Codes::RPL_WHOREPLY, Irc::Codes::RPL_WLCM

Instance Attribute Summary

Attributes included from Connection

#current_user, #dispatcher, #irc_channels

Instance Method Summary collapse

Methods included from Connection

#after_connect, #initialize, #populate_irc_channels, #populate_my_user, #receive_data, #send_message, #send_messages

Methods included from Irc::Commands

#error, #reply, #send_channel_list, #send_channel_mode, #send_join, #send_motd, #send_nowaway, #send_part, #send_pong, #send_rename, #send_topic, #send_unaway, #send_user_mode, #send_userlist, #send_welcome, #send_who

Instance Method Details

#campfire_connectionObject



8
9
10
# File 'lib/flamethrower/server/mock_connection.rb', line 8

def campfire_connection
  Flamethrower::Campfire::Connection.new("mydomain", "mytoken", self)
end

#send_data(msg) ⇒ Object



5
6
# File 'lib/flamethrower/server/mock_connection.rb', line 5

def send_data(msg)
end

#serverObject



12
13
14
# File 'lib/flamethrower/server/mock_connection.rb', line 12

def server
  Flamethrower::EventServer.new
end