Class: BitlbeeConfig::Accounts::Gtalk

Inherits:
Jabber show all
Defined in:
lib/bitlbee_config/accounts/gtalk.rb

Constant Summary collapse

DEFAULT_GTALK_SERVER =
"talk.google.com"

Instance Attribute Summary

Attributes inherited from BitlbeeConfig::Account

#autoconnect, #cleartext_password, #handle, #password, #protocol, #server, #settings, #tag, #user

Instance Method Summary collapse

Methods inherited from BitlbeeConfig::Account

#build_xml, create_new_account, from_xml, #id, #regenerate_password_if_needed

Methods included from XmlBuildable

#to_xml_with_options

Constructor Details

#initialize(options = {}) ⇒ Gtalk

Returns a new instance of Gtalk.



6
7
8
9
10
11
12
13
14
# File 'lib/bitlbee_config/accounts/gtalk.rb', line 6

def initialize(options = {})
  # unlike facebook, we don't give support password authentication here, only oauth
  super({ tag: "gtalk",
          nick_format: "%full_name",
          server: DEFAULT_GTALK_SERVER,
          oauth: "on",
          cleartext_password: ""
        }.merge(options))
end