Class: Kaltura::KalturaPartnerStatistics

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

#bandwidthObject

Partner total bandwidth in GB



8109
8110
8111
# File 'lib/kaltura_types.rb', line 8109

def bandwidth
  @bandwidth
end

#hostingObject

Partner total hosting in GB on the disk



8107
8108
8109
# File 'lib/kaltura_types.rb', line 8107

def hosting
  @hosting
end

#package_bandwidth_and_storageObject

Package total allowed bandwidth and storage



8105
8106
8107
# File 'lib/kaltura_types.rb', line 8105

def package_bandwidth_and_storage
  @package_bandwidth_and_storage
end

#reached_limit_dateObject

date when partner reached the limit of his package (timestamp)



8115
8116
8117
# File 'lib/kaltura_types.rb', line 8115

def reached_limit_date
  @reached_limit_date
end

#usageObject

total usage in GB - including bandwidth and storage



8111
8112
8113
# File 'lib/kaltura_types.rb', line 8111

def usage
  @usage
end

#usage_percentObject

Percent of usage out of partner’s package. if usage is 5GB and package is 10GB, this value will be 50



8113
8114
8115
# File 'lib/kaltura_types.rb', line 8113

def usage_percent
  @usage_percent
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
# File 'lib/kaltura_types.rb', line 8136

def from_xml(xml_element)
	super
	if xml_element.elements['packageBandwidthAndStorage'] != nil
		self.package_bandwidth_and_storage = xml_element.elements['packageBandwidthAndStorage'].text
	end
	if xml_element.elements['hosting'] != nil
		self.hosting = xml_element.elements['hosting'].text
	end
	if xml_element.elements['bandwidth'] != nil
		self.bandwidth = xml_element.elements['bandwidth'].text
	end
	if xml_element.elements['usage'] != nil
		self.usage = xml_element.elements['usage'].text
	end
	if xml_element.elements['usagePercent'] != nil
		self.usage_percent = xml_element.elements['usagePercent'].text
	end
	if xml_element.elements['reachedLimitDate'] != nil
		self.reached_limit_date = xml_element.elements['reachedLimitDate'].text
	end
end