class Myun2::TwitterShell::Authorize
Attributes
access_token[R]
pin[R]
Public Class Methods
new()
click to toggle source
# File lib/myun2/twitter_shell/authorize.rb, line 8 def initialize puts "* Requesting authorization URL ..." auth_url = request_authorize_url puts " " + auth_url puts "* Please access to above URL in your browser." puts " And permit application 'Myun2 Twitter Shell (Twsh)." puts " And enter shown PIN code to under." print "PIN> " read_pin && authorize end
Public Instance Methods
read_pin()
click to toggle source
# File lib/myun2/twitter_shell/authorize.rb, line 26 def read_pin @pin = gets.chomp end