Class: Disqussion::Reports

Inherits:
Client
  • Object
show all
Defined in:
lib/disqussion/client/reports.rb

Instance Method Summary collapse

Methods included from Request

#get, #post

Instance Method Details

#domains(*args) ⇒ Hashie::Rash

Returns report on domains @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: false @see: http://disqus.com/api/3.0/reports/domains.json

Examples:

Return report on comments by domains usage

Disqussion::Client.reports.domains

Parameters:

  • options (Hash)

    A customizable set of options.

Returns:

  • (Hashie::Rash)

    Returns report



17
18
19
20
# File 'lib/disqussion/client/reports.rb', line 17

def domains(*args)
  options = args.last.is_a?(Hash) ? args.pop : {}
  response = get('reports/domains', options)
end

#ips(*args) ⇒ Hashie::Rash

Returns report on ips @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: false @see: http://disqus.com/api/3.0/reports/ips.json

Examples:

Return report on comments by IPs usage

Disqussion::Client.reports.ips

Parameters:

  • options (Hash)

    A customizable set of options.

Returns:

  • (Hashie::Rash)

    Returns report



36
37
38
39
# File 'lib/disqussion/client/reports.rb', line 36

def ips(*args)
  options = args.last.is_a?(Hash) ? args.pop : {}
  response = get('reports/ips', options)
end

#threads(*args) ⇒ Hashie::Rash

Returns report on threads @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: false @see: http://disqus.com/api/3.0/reports/threads.json

Examples:

Return report on comments by threads

Disqussion::Client.reports.threads

Parameters:

  • options (Hash)

    A customizable set of options.

Returns:

  • (Hashie::Rash)

    Returns report



55
56
57
58
# File 'lib/disqussion/client/reports.rb', line 55

def threads(*args)
  options = args.last.is_a?(Hash) ? args.pop : {}
  response = get('reports/threads', options)
end

#users(*args) ⇒ Hashie::Rash

Returns report on users @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: false @see: http://disqus.com/api/3.0/reports/users.json

Examples:

Return report on comments by users

Disqussion::Client.reports.users

Parameters:

  • options (Hash)

    A customizable set of options.

Returns:

  • (Hashie::Rash)

    Returns report



74
75
76
77
# File 'lib/disqussion/client/reports.rb', line 74

def users(*args)
  options = args.last.is_a?(Hash) ? args.pop : {}
  response = get('reports/users', options)
end