Module: JsChat::Auth::Twitter

Defined in:
lib/jschat/http/jschat.rb

Class Method Summary collapse

Class Method Details

.loadObject



21
22
23
24
25
26
27
# File 'lib/jschat/http/jschat.rb', line 21

def self.load
  require 'twitter_oauth'
  @loaded = true
rescue LoadError
  puts 'Error: twitter_oauth gem not found'
  @loaded = false
end

.loaded?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/jschat/http/jschat.rb', line 29

def self.loaded?
  @loaded
end

.templateObject



17
18
19
# File 'lib/jschat/http/jschat.rb', line 17

def self.template
  :twitter
end