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
print_usage() click to toggle source
screen_name() click to toggle source
# File lib/tomodachi.rb, line 32
def screen_name
  ARGV[1]
end