Class: Kaltura::KalturaPartnerStatistics
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaPartnerStatistics
- Defined in:
- lib/kaltura_types.rb
Instance Attribute Summary collapse
-
#bandwidth ⇒ Object
Partner total bandwidth in GB.
-
#hosting ⇒ Object
Partner total hosting in GB on the disk.
-
#package_bandwidth_and_storage ⇒ Object
Package total allowed bandwidth and storage.
-
#reached_limit_date ⇒ Object
date when partner reached the limit of his package (timestamp).
-
#usage ⇒ Object
total usage in GB - including bandwidth and storage.
-
#usage_percent ⇒ Object
Percent of usage out of partner’s package.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#bandwidth ⇒ Object
Partner total bandwidth in GB
4602 4603 4604 |
# File 'lib/kaltura_types.rb', line 4602 def bandwidth @bandwidth end |
#hosting ⇒ Object
Partner total hosting in GB on the disk
4599 4600 4601 |
# File 'lib/kaltura_types.rb', line 4599 def hosting @hosting end |
#package_bandwidth_and_storage ⇒ Object
Package total allowed bandwidth and storage
4596 4597 4598 |
# File 'lib/kaltura_types.rb', line 4596 def package_bandwidth_and_storage @package_bandwidth_and_storage end |
#reached_limit_date ⇒ Object
date when partner reached the limit of his package (timestamp)
4611 4612 4613 |
# File 'lib/kaltura_types.rb', line 4611 def reached_limit_date @reached_limit_date end |
#usage ⇒ Object
total usage in GB - including bandwidth and storage
4605 4606 4607 |
# File 'lib/kaltura_types.rb', line 4605 def usage @usage end |
#usage_percent ⇒ Object
Percent of usage out of partner’s package. if usage is 5GB and package is 10GB, this value will be 50
4608 4609 4610 |
# File 'lib/kaltura_types.rb', line 4608 def usage_percent @usage_percent end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
4632 4633 4634 4635 4636 4637 4638 4639 4640 |
# File 'lib/kaltura_types.rb', line 4632 def from_xml(xml_element) super self.package_bandwidth_and_storage = xml_element.elements['packageBandwidthAndStorage'].text self.hosting = xml_element.elements['hosting'].text self.bandwidth = xml_element.elements['bandwidth'].text self.usage = xml_element.elements['usage'].text self.usage_percent = xml_element.elements['usagePercent'].text self.reached_limit_date = xml_element.elements['reachedLimitDate'].text end |