Module: Twitter::REST::Help
Constant Summary
Constants included from Utils
Instance Method Summary collapse
-
#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
#languages(options = {}) ⇒ Array<Twitter::Language>
Returns the list of languages supported by Twitter
17 18 19 |
# File 'lib/twitter/rest/help.rb', line 17 def languages( = {}) perform_get_with_objects("/1.1/help/languages.json", , Twitter::Language) end |
#privacy(options = {}) ⇒ String
Returns Twitter's Privacy Policy
28 29 30 |
# File 'lib/twitter/rest/help.rb', line 28 def privacy( = {}) perform_get("/1.1/help/privacy.json", )[:privacy] end |
#tos(options = {}) ⇒ String
Returns Twitter's Terms of Service
39 40 41 |
# File 'lib/twitter/rest/help.rb', line 39 def tos( = {}) perform_get("/1.1/help/tos.json", )[:tos] end |