Class: Kaltura::KalturaPartnerUsage
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaPartnerUsage
- Defined in:
- lib/kaltura_types.rb
Instance Attribute Summary collapse
-
#hosting_gb ⇒ Object
Partner total hosting in GB on the disk.
-
#package_bw ⇒ Object
package total BW - actually this is usage, which represents BW+storage.
-
#percent ⇒ Object
percent of usage out of partner’s package.
-
#reached_limit_date ⇒ Object
date when partner reached the limit of his package (timestamp).
-
#usage_gb ⇒ Object
total usage in GB - including bandwidth and storage.
-
#usage_graph ⇒ Object
a semi-colon separated list of comma-separated key-values to represent a usage graph.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#hosting_gb ⇒ Object
Partner total hosting in GB on the disk
7992 7993 7994 |
# File 'lib/kaltura_types.rb', line 7992 def hosting_gb @hosting_gb end |
#package_bw ⇒ Object
package total BW - actually this is usage, which represents BW+storage
7996 7997 7998 |
# File 'lib/kaltura_types.rb', line 7996 def package_bw @package_bw end |
#percent ⇒ Object
percent of usage out of partner’s package. if usageGB is 5 and package is 10GB, this value will be 50
7994 7995 7996 |
# File 'lib/kaltura_types.rb', line 7994 def percent @percent end |
#reached_limit_date ⇒ Object
date when partner reached the limit of his package (timestamp)
8000 8001 8002 |
# File 'lib/kaltura_types.rb', line 8000 def reached_limit_date @reached_limit_date end |
#usage_gb ⇒ Object
total usage in GB - including bandwidth and storage
7998 7999 8000 |
# File 'lib/kaltura_types.rb', line 7998 def usage_gb @usage_gb end |
#usage_graph ⇒ Object
a semi-colon separated list of comma-separated key-values to represent a usage graph. keys could be 1-12 for a year view (1,1.2;2,1.1;3,0.9;…;12,1.4;) keys could be 1- depending on the requested month, for a daily view in a given month (1,0.4;2,0.2;…;31,0.1;)
8004 8005 8006 |
# File 'lib/kaltura_types.rb', line 8004 def usage_graph @usage_graph end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 |
# File 'lib/kaltura_types.rb', line 8022 def from_xml(xml_element) super if xml_element.elements['hostingGB'] != nil self.hosting_gb = xml_element.elements['hostingGB'].text end if xml_element.elements['Percent'] != nil self.percent = xml_element.elements['Percent'].text end if xml_element.elements['packageBW'] != nil self.package_bw = xml_element.elements['packageBW'].text end if xml_element.elements['usageGB'] != nil self.usage_gb = xml_element.elements['usageGB'].text end if xml_element.elements['reachedLimitDate'] != nil self.reached_limit_date = xml_element.elements['reachedLimitDate'].text end if xml_element.elements['usageGraph'] != nil self.usage_graph = xml_element.elements['usageGraph'].text end end |