Class: Disqussion::Reactions
- Defined in:
- lib/disqussion/client/reactions.rb
Instance Method Summary collapse
-
#details(*args) ⇒ Hashie::Rash
Returns reaction details @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: false @see: http://disqus.com/api/3.0/reactions/details.json.
-
#domains(*args) ⇒ Hashie::Rash
Returns ?? @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: false @see: http://disqus.com/api/3.0/posts/domains.json.
-
#ips(*args) ⇒ Hashie::Rash
Returns ?? @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: false @see: http://disqus.com/api/3.0/posts/ips.json.
-
#list(*args) ⇒ Hashie::Rash
Returns a list of reactions @accessibility: public key, secret key @methods: POST,GET @format: json, jsonp @authenticated: false @limited: false @see: http://disqus.com/api/3.0/reactions/details.json.
-
#threads(*args) ⇒ Hashie::Rash
Returns ?? @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: false @see: http://disqus.com/api/3.0/posts/threads.json.
-
#users(*args) ⇒ Hashie::Rash
Returns ?? @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: false @see: http://disqus.com/api/3.0/posts/users.json.
Methods included from Request
Instance Method Details
#details(*args) ⇒ Hashie::Rash
Returns reaction details @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: false @see: http://disqus.com/api/3.0/reactions/details.json
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/disqussion/client/reactions.rb', line 16 def details(*args) = args.last.is_a?(Hash) ? args.pop : {} if args.length == 2 .merge!(:reaction => args[0]) .merge!(:forum => args[1]) response = get('reactions/details', ) else puts "#{Kernel.caller.first}: Reactions.details expects 2 arguments: reaction and forum" end end |
#domains(*args) ⇒ Hashie::Rash
Returns ?? @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: false @see: http://disqus.com/api/3.0/posts/domains.json
41 42 43 44 |
# File 'lib/disqussion/client/reactions.rb', line 41 def domains(*args) = args.last.is_a?(Hash) ? args.pop : {} response = get('reactions/domains', ) end |
#ips(*args) ⇒ Hashie::Rash
Returns ?? @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: false @see: http://disqus.com/api/3.0/posts/ips.json
60 61 62 63 |
# File 'lib/disqussion/client/reactions.rb', line 60 def ips(*args) = args.last.is_a?(Hash) ? args.pop : {} response = get('reactions/ips', ) end |
#list(*args) ⇒ Hashie::Rash
Returns a list of reactions @accessibility: public key, secret key @methods: POST,GET @format: json, jsonp @authenticated: false @limited: false @see: http://disqus.com/api/3.0/reactions/details.json
81 82 83 84 85 |
# File 'lib/disqussion/client/reactions.rb', line 81 def list(*args) = args.last.is_a?(Hash) ? args.pop : {} [:forum] = args.first response = get('reactions/list', ) end |
#threads(*args) ⇒ Hashie::Rash
Returns ?? @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: false @see: http://disqus.com/api/3.0/posts/threads.json
101 102 103 104 |
# File 'lib/disqussion/client/reactions.rb', line 101 def threads(*args) = args.last.is_a?(Hash) ? args.pop : {} response = get('reactions/threads', ) end |
#users(*args) ⇒ Hashie::Rash
Returns ?? @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: false @see: http://disqus.com/api/3.0/posts/users.json
120 121 122 123 |
# File 'lib/disqussion/client/reactions.rb', line 120 def users(*args) = args.last.is_a?(Hash) ? args.pop : {} response = get('reactions/users', ) end |