class Twurl::Options

Constants

DEFAULT_HOST
DEFAULT_PROTOCOL
DEFAULT_REQUEST_METHOD

Public Instance Methods

base_url() click to toggle source
    # File lib/twurl/cli.rb
373 def base_url
374   "#{protocol}://#{host}"
375 end
debug_output_io() click to toggle source
Calls superclass method
    # File lib/twurl/cli.rb
381 def debug_output_io
382   super || STDERR
383 end
host() click to toggle source
Calls superclass method
    # File lib/twurl/cli.rb
393 def host
394   super || DEFAULT_HOST
395 end
oauth_client_options() click to toggle source
    # File lib/twurl/cli.rb
366 def oauth_client_options
367   OAuthClient::OAUTH_CLIENT_OPTIONS.inject({}) do |options, option|
368     options[option] = send(option)
369     options
370   end
371 end
protocol() click to toggle source
Calls superclass method
    # File lib/twurl/cli.rb
389 def protocol
390   super || DEFAULT_PROTOCOL
391 end
proxy() click to toggle source
Calls superclass method
    # File lib/twurl/cli.rb
397 def proxy
398   super || nil
399 end
request_method() click to toggle source
Calls superclass method
    # File lib/twurl/cli.rb
385 def request_method
386   super || (data.empty? ? DEFAULT_REQUEST_METHOD : 'post')
387 end
ssl?() click to toggle source
    # File lib/twurl/cli.rb
377 def ssl?
378   protocol == 'https'
379 end