Class: Outbrain::Api::Report

Inherits:
Base
  • Object
show all
Defined in:
lib/outbrain/api/report.rb

Instance Attribute Summary

Attributes inherited from Base

#errors

Class Method Summary collapse

Methods inherited from Base

#extract_query_options, #initialize, #persisted?, #valid?

Constructor Details

This class inherits a constructor from Outbrain::Base

Class Method Details

.resource_nameObject



4
5
6
# File 'lib/outbrain/api/report.rb', line 4

def self.resource_name
  'details'
end

.where(options = {}) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/outbrain/api/report.rb', line 8

def self.where(options = {})
  report_options = {
    as: self,
    resource_name: resource_name,
  }
  Request.where(self.path(options), options, report_options)
end