Module: Twtr

Defined in:
lib/twtr/version.rb,
lib/twtr.rb,
lib/twtr/client.rb,
lib/twtr/config.rb,
lib/twtr/errors.rb,
lib/twtr/screen.rb,
lib/twtr/console.rb

Overview

:nodoc:

Defined Under Namespace

Modules: Config, Screen, VERSION Classes: Client, ConfigFileNotFoundException, Console, ResponseErrorException, UnknownSubcommandException

Constant Summary collapse

HTTP_ERRORS =
{
  400 => "Bad Request",
  401 => "Not Authorized",
  403 => "Forbidden",
  404 => "Not Found",
  500 => "Internal Server Error",
  502 => "Bad Gateway (Twitter is down or being upgraded.)",
  503 => "Service Unavailable (Try again later.)",
}
DESCRIPTION =
"Twtr Copyright (c) 2008 Ryota Maruko\nDESCRIPTION\n    twtr is a imprementaion of twitter client.\n    Features are\n     * Command line application.\n     * Simple Twitter library.\n     * Http Proxy available.\n     * Double Byte Encoding. e.g) ShiftJIS, EUC-JP, etc.\n\nSYNOPSIS\n    twtr [subcommand] [options]\n    ex)\n      $ twtr setting              # => (Re)set config file.\n      $ twtr ft                   # => Show friends timeline.\n      $ twtr pt -P 2              # => Show public timeline (page 2).\n      $ twtr ut -i bob            # => Show someone's timeline.\n      $ twtr rp                   # => Show replies.\n      $ twtr up -m \"hello world\"  # => Update message.\n      $ twtr friends              # => Show friends.\n      $ twtr friedns -i bob       # => Show bob's friends.\n      $ twtr ul -l \"Tokyo, Japan\" # => Update location.\n      $ twtr rls                  # => The remaining number of API requests.\n\nSUBCMMAND\n    setting (reset)         # (Re)Set twtr configuration.\n    friends_timeline (ft)   # Show friends timeline.\n    putlic_timeline (pt)    # Show public timeline.\n    user_timeline (ut)      # Show user timeline. -i, --id  option required.\n    replies (rp)            # Show replies.\n    update (up)             # Updates your status. -m, --message option required.\n    friends (fds)           # Show friends. available -i, --id  option.\n    update_location (ul)    # Update location. -l, --location option required.\n    rate_limit_status (rls) # The remaining number of API requests.\n    \n"

Class Method Summary collapse

Class Method Details

.is_win?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/twtr.rb', line 5

def self.is_win?
  (RUBY_PLATFORM.downcase =~ /mswin(?!ce)|mingw|cygwin|bccwin/) ? true : false
end