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
-
#configuration(options = {}) ⇒ Twitter::Configuration
Returns the current configuration used by Twitter.
-
#languages(options = {}) ⇒ Array<Twitter::Language>
Returns the list of languages supported by Twitter.
Instance Method Details
#configuration(options = {}) ⇒ Twitter::Configuration
Returns the current configuration used by Twitter
17 18 19 20 |
# File 'lib/twitter/client/help.rb', line 17 def configuration(={}) configuration = get("/1/help/configuration.json", ) Twitter::Configuration.new(configuration) end |
#languages(options = {}) ⇒ Array<Twitter::Language>
Returns the list of languages supported by Twitter
30 31 32 33 34 |
# File 'lib/twitter/client/help.rb', line 30 def languages(={}) get("/1/help/languages.json", ).map do |language| Twitter::Language.new(language) end end |