Module: Twitter::Client::Help

Included in:
Twitter::Client
Defined in:
lib/twitter/client/help.rb

Overview

Defines methods related twitter's supported features and configuration

Instance Method Summary collapse

Instance Method Details

#configuration(options = {}) ⇒ Twitter::Configuration

Returns the current configuration used by Twitter

Examples:

Return the current configuration used by Twitter

Twitter.configuration

Returns:

See Also:

Rate Limited?:

  • Yes

Requires Authentication?:

  • No



17
18
19
20
# File 'lib/twitter/client/help.rb', line 17

def configuration(options={})
  configuration = get("/1/help/configuration.json", options)
  Twitter::Configuration.new(configuration)
end

#languages(options = {}) ⇒ Array<Twitter::Language>

Returns the list of languages supported by Twitter

Examples:

Return the list of languages Twitter supports

Twitter.languages

Returns:

See Also:

Rate Limited?:

  • Yes

Requires Authentication?:

  • No



30
31
32
33
34
# File 'lib/twitter/client/help.rb', line 30

def languages(options={})
  get("/1/help/languages.json", options).map do |language|
    Twitter::Language.new(language)
  end
end