Class: Kaltura::KalturaAnalyticsFilter

Inherits:
KalturaObjectBase show all
Defined in:
lib/kaltura_types.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#dimensionsObject

Comma separated dimensions list



426
427
428
# File 'lib/kaltura_types.rb', line 426

def dimensions
  @dimensions
end

#filtersObject

Array of filters



428
429
430
# File 'lib/kaltura_types.rb', line 428

def filters
  @filters
end

#from_timeObject

Query start time (in local time) MM/dd/yyyy HH:mi



418
419
420
# File 'lib/kaltura_types.rb', line 418

def from_time
  @from_time
end

#metricsObject

Comma separated metrics list



422
423
424
# File 'lib/kaltura_types.rb', line 422

def metrics
  @metrics
end

#order_byObject

Query order by metric/dimension



430
431
432
# File 'lib/kaltura_types.rb', line 430

def order_by
  @order_by
end

#to_timeObject

Query end time (in local time) MM/dd/yyyy HH:mi



420
421
422
# File 'lib/kaltura_types.rb', line 420

def to_time
  @to_time
end

#utc_offsetObject

Timezone offset from UTC (in minutes)



424
425
426
# File 'lib/kaltura_types.rb', line 424

def utc_offset
  @utc_offset
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
# File 'lib/kaltura_types.rb', line 436

def from_xml(xml_element)
	super
	if xml_element.elements['from_time'] != nil
		self.from_time = xml_element.elements['from_time'].text
	end
	if xml_element.elements['to_time'] != nil
		self.to_time = xml_element.elements['to_time'].text
	end
	if xml_element.elements['metrics'] != nil
		self.metrics = xml_element.elements['metrics'].text
	end
	if xml_element.elements['utcOffset'] != nil
		self.utc_offset = xml_element.elements['utcOffset'].text
	end
	if xml_element.elements['dimensions'] != nil
		self.dimensions = xml_element.elements['dimensions'].text
	end
	if xml_element.elements['filters'] != nil
		self.filters = KalturaClientBase.object_from_xml(xml_element.elements['filters'], 'KalturaReportFilter')
	end
	if xml_element.elements['orderBy'] != nil
		self.order_by = xml_element.elements['orderBy'].text
	end
end