mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 17:22:35 +00:00
Inital Import of asterisk_gosu into launcher, non-functional.
This commit is contained in:
29
lib/asterisk/irc_profile.rb
Normal file
29
lib/asterisk/irc_profile.rb
Normal file
@@ -0,0 +1,29 @@
|
||||
class W3DHub
|
||||
class Asterisk
|
||||
class IRCProfile
|
||||
attr_accessor :name, :nickname, :password, :server_hostname, :server_port, :server_bot
|
||||
|
||||
def initialize(hash = nil)
|
||||
return unless hash
|
||||
|
||||
@name = hash[:name]
|
||||
@nickname = hash[:nickname]
|
||||
@password = hash[:password]
|
||||
@server_hostname = hash[:server_hostname]
|
||||
@server_port = hash[:server_port]
|
||||
@server_bot = hash[:server_bot]
|
||||
end
|
||||
|
||||
def to_json(options)
|
||||
{
|
||||
name: @name,
|
||||
nickname: @nickname,
|
||||
password: @password,
|
||||
server_hostname: @server_hostname,
|
||||
server_port: @server_port,
|
||||
server_bot: @server_bot
|
||||
}.to_json(options)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user