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



4602
4603
4604
# File 'lib/kaltura_types.rb', line 4602

def bandwidth
  @bandwidth
end

#hostingObject

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_storageObject

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_dateObject

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

#usageObject

total usage in GB - including bandwidth and storage



4605
4606
4607
# File 'lib/kaltura_types.rb', line 4605

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



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