Class: OSCRuby::AnalyticsReportResults

Inherits:
Object
  • Object
show all
Includes:
NormalizeModule, ValidationsModule
Defined in:
lib/osc_ruby/classes/analytics_report_results.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ValidationsModule

check_client, check_query

Methods included from NormalizeModule

iterate_through_rows, normalize

Constructor Details

#initialize(**args) ⇒ AnalyticsReportResults

Returns a new instance of AnalyticsReportResults.



14
15
16
17
18
# File 'lib/osc_ruby/classes/analytics_report_results.rb', line 14

def initialize(**args)
	@lookupName = args[:lookupName]
	@id = args[:id]
	@filters = []
end

Instance Attribute Details

#filtersObject

Returns the value of attribute filters.



12
13
14
# File 'lib/osc_ruby/classes/analytics_report_results.rb', line 12

def filters
  @filters
end

#idObject

Returns the value of attribute id.



12
13
14
# File 'lib/osc_ruby/classes/analytics_report_results.rb', line 12

def id
  @id
end

#lookupNameObject

Returns the value of attribute lookupName.



12
13
14
# File 'lib/osc_ruby/classes/analytics_report_results.rb', line 12

def lookupName
  @lookupName
end

Instance Method Details

#run(client) ⇒ Object



22
23
24
25
26
27
28
29
30
31
32
# File 'lib/osc_ruby/classes/analytics_report_results.rb', line 22

def run(client)

	json_data = convert_to_json(self)

	ValidationsModule::check_client(client)

   	response = OSCRuby::Connect.post_or_patch(client,'analyticsReportResults',json_data)

   	check_and_parse_response(response)

end