class BitlbeeConfig::Accounts::Hipchat
Constants
- USERNAME_SUFFIX
Public Class Methods
new(options = {})
click to toggle source
Calls superclass method
BitlbeeConfig::Accounts::Jabber::new
# File lib/bitlbee_config/accounts/hipchat.rb, line 6 def initialize(options = {}) super({ tag: "hipchat", nick_format: "%full_name" }.merge(options)) ensure_handle_is_suffixed if @handle end
Public Instance Methods
ensure_handle_is_suffixed()
click to toggle source
We don’t want the user to have to enter “@chat.facebook.com” with their handle, so we do it for them
# File lib/bitlbee_config/accounts/hipchat.rb, line 15 def ensure_handle_is_suffixed @handle += USERNAME_SUFFIX unless @handle =~ /#{ USERNAME_SUFFIX }$/ end