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
8109 8110 8111 |
# File 'lib/kaltura_types.rb', line 8109 def bandwidth @bandwidth end |
#hosting ⇒ Object
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_storage ⇒ Object
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_date ⇒ Object
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 |
#usage ⇒ Object
total usage in GB - including bandwidth and storage
8111 8112 8113 |
# File 'lib/kaltura_types.rb', line 8111 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
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 |