Class: OSvCRuby::AnalyticsReportResults
- Inherits:
-
Object
- Object
- OSvCRuby::AnalyticsReportResults
- Includes:
- NormalizeModule, ValidationsModule
- Defined in:
- lib/osvc_ruby/classes/analytics_report_results.rb
Instance Attribute Summary collapse
-
#filters ⇒ Object
Returns the value of attribute filters.
-
#id ⇒ Object
Returns the value of attribute id.
-
#lookupName ⇒ Object
Returns the value of attribute lookupName.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AnalyticsReportResults
constructor
A new instance of AnalyticsReportResults.
- #run(client) ⇒ Object
Methods included from ValidationsModule
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/osvc_ruby/classes/analytics_report_results.rb', line 14 def initialize(**args) @lookupName = args[:lookupName] @id = args[:id] @filters = [] end |
Instance Attribute Details
#filters ⇒ Object
Returns the value of attribute filters.
12 13 14 |
# File 'lib/osvc_ruby/classes/analytics_report_results.rb', line 12 def filters @filters end |
#id ⇒ Object
Returns the value of attribute id.
12 13 14 |
# File 'lib/osvc_ruby/classes/analytics_report_results.rb', line 12 def id @id end |
#lookupName ⇒ Object
Returns the value of attribute lookupName.
12 13 14 |
# File 'lib/osvc_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/osvc_ruby/classes/analytics_report_results.rb', line 22 def run(client) json_data = convert_to_json(self) ValidationsModule::check_client(client) response = OSvCRuby::Connect.post_or_patch(client,'analyticsReportResults',json_data) check_and_parse_response(response) end |