class Tomodachi
Constants
- CONSUMER_KEY
- CONSUMER_SECRET
- VERSION
Public Instance Methods
setup()
click to toggle source
# File lib/tomodachi.rb, line 10 def setup case command when 'auth' auth.create when 'list' auth.list when 'start' return print_start_usage if screen_name.nil? client = Tomodachi::Client.new(screen_name) client.start else print_usage end end
Private Instance Methods
auth()
click to toggle source
# File lib/tomodachi.rb, line 36 def auth @auth ||= Tomodachi::Auth.new end
command()
click to toggle source
# File lib/tomodachi.rb, line 28 def command ARGV[0] end
print_start_usage()
click to toggle source
# File lib/tomodachi.rb, line 49 def print_start_usage puts <<-EOS.unindent Usage: tomodachi start [screen_name] EOS end
print_usage()
click to toggle source
# File lib/tomodachi.rb, line 40 def print_usage puts <<-EOS.unindent Usage: tomodachi auth # add account tomodachi list # authenticated account list tomodachi start [screen_name] # start automatic following back EOS end
screen_name()
click to toggle source
# File lib/tomodachi.rb, line 32 def screen_name ARGV[1] end