Mercurial > hgrepos > hgweb.cgi > xsotter
comparison xsotter_class.rb @ 8:2ebeaae57e96
chop 140
author | KAMURA Sota <c109047@e.koeki-u.ac.jp> |
---|---|
date | Tue, 07 Feb 2012 23:26:41 +0900 |
parents | 6c763cb4ea40 |
children | 42e9379d8c1d |
comparison
equal
deleted
inserted
replaced
7:ef8cc6249d53 | 8:2ebeaae57e96 |
---|---|
8 include Twitter | 8 include Twitter |
9 | 9 |
10 class Xsotter | 10 class Xsotter |
11 | 11 |
12 def initialize (token_path) | 12 def initialize (token_path) |
13 p @path = File.expand_path(token_path) | 13 @path = File.expand_path(token_path) |
14 # @path = File.expand_path("~") + "/.xsotter_token" | 14 # @path = File.expand_path("~") + "/.xsotter_token" |
15 @login = false | 15 @login = false |
16 @kcode = "-e" | 16 @kcode = "-e" |
17 oauth if File.exist?(@path) == false | 17 oauth if File.exist?(@path) == false |
18 | 18 |