Module: Garlenko
- Defined in:
- lib/garlenko/base.rb,
lib/garlenko/live.rb,
lib/garlenko/gmail.rb,
lib/garlenko/yahoo.rb,
lib/garlenko/crawler.rb,
lib/garlenko/version.rb
Defined Under Namespace
Modules: Crawler Classes: Base, Gmail, Live, Yahoo
Constant Summary collapse
- VERSION =
"0.0.2"
Class Method Summary collapse
Class Method Details
.new(kind, username, password) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/garlenko/base.rb', line 4 def self.new(kind, username, password) case kind when :live then Live.new(username, password) when :gmail then Gmail.new(username, password) when :yahoo then Yahoo.new(username, password) else raise "Invalid kind (#{kind})!" end end |