class Myun2::TwitterShell::Login

Public Class Methods

new(*params) click to toggle source
# File lib/myun2/twitter_shell/login.rb, line 6
def initialize(*params)
  new_login
end

Private Instance Methods

new_login() click to toggle source
# File lib/myun2/twitter_shell/login.rb, line 11
def new_login
  access_token = Authorize.new.access_token
  profile = Profile.new(
    access_token: access_token.token,
    access_token_secret: access_token.secret,
  )
  profile.save
end