Module: Twitter::REST::Help
Constant Summary
Constants included from Utils
Utils::DEFAULT_CURSOR, Utils::URI_SUBSTRING
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.
-
#privacy(options = {}) ⇒ String
Returns Twitter's Privacy Policy.
-
#tos(options = {}) ⇒ String
Returns Twitter's Terms of Service.
Methods included from Utils
Instance Method Details
#configuration(options = {}) ⇒ Twitter::Configuration
Returns the current configuration used by Twitter
18 19 20 |
# File 'lib/twitter/rest/help.rb', line 18 def configuration( = {}) perform_get_with_object('/1.1/help/configuration.json', , Twitter::Configuration) end |
#languages(options = {}) ⇒ Array<Twitter::Language>
Returns the list of languages supported by Twitter
29 30 31 |
# File 'lib/twitter/rest/help.rb', line 29 def languages( = {}) perform_get_with_objects('/1.1/help/languages.json', , Twitter::Language) end |
#privacy(options = {}) ⇒ String
Returns Twitter's Privacy Policy
40 41 42 |
# File 'lib/twitter/rest/help.rb', line 40 def privacy( = {}) perform_get('/1.1/help/privacy.json', )[:privacy] end |
#tos(options = {}) ⇒ String
Returns Twitter's Terms of Service
51 52 53 |
# File 'lib/twitter/rest/help.rb', line 51 def tos( = {}) perform_get('/1.1/help/tos.json', )[:tos] end |