Class: Kaltura::KalturaAppToken

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

#created_atObject

Creation time as Unix timestamp (In seconds)



487
488
489
# File 'lib/kaltura_types.rb', line 487

def created_at
  @created_at
end

#descriptionObject

Returns the value of attribute description.



503
504
505
# File 'lib/kaltura_types.rb', line 503

def description
  @description
end

#expiryObject

Expiry time of current token (unix timestamp in seconds)



493
494
495
# File 'lib/kaltura_types.rb', line 493

def expiry
  @expiry
end

#hash_typeObject

Returns the value of attribute hash_type.



502
503
504
# File 'lib/kaltura_types.rb', line 502

def hash_type
  @hash_type
end

#idObject

The id of the application token



482
483
484
# File 'lib/kaltura_types.rb', line 482

def id
  @id
end

#partner_idObject

Returns the value of attribute partner_id.



485
486
487
# File 'lib/kaltura_types.rb', line 485

def partner_id
  @partner_id
end

#session_durationObject

Expiry duration of KS (Kaltura Session) that created using the current token (in seconds)



499
500
501
# File 'lib/kaltura_types.rb', line 499

def session_duration
  @session_duration
end

#session_privilegesObject

Comma separated privileges to be applied on KS (Kaltura Session) that created using the current token



501
502
503
# File 'lib/kaltura_types.rb', line 501

def session_privileges
  @session_privileges
end

#session_typeObject

Type of KS (Kaltura Session) that created using the current token



495
496
497
# File 'lib/kaltura_types.rb', line 495

def session_type
  @session_type
end

#session_user_idObject

User id of KS (Kaltura Session) that created using the current token



497
498
499
# File 'lib/kaltura_types.rb', line 497

def session_user_id
  @session_user_id
end

#statusObject

Application token status



491
492
493
# File 'lib/kaltura_types.rb', line 491

def status
  @status
end

#tokenObject

The application token



484
485
486
# File 'lib/kaltura_types.rb', line 484

def token
  @token
end

#updated_atObject

Update time as Unix timestamp (In seconds)



489
490
491
# File 'lib/kaltura_types.rb', line 489

def updated_at
  @updated_at
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
# File 'lib/kaltura_types.rb', line 527

def from_xml(xml_element)
	super
	if xml_element.elements['id'] != nil
		self.id = xml_element.elements['id'].text
	end
	if xml_element.elements['token'] != nil
		self.token = xml_element.elements['token'].text
	end
	if xml_element.elements['partnerId'] != nil
		self.partner_id = xml_element.elements['partnerId'].text
	end
	if xml_element.elements['createdAt'] != nil
		self.created_at = xml_element.elements['createdAt'].text
	end
	if xml_element.elements['updatedAt'] != nil
		self.updated_at = xml_element.elements['updatedAt'].text
	end
	if xml_element.elements['status'] != nil
		self.status = xml_element.elements['status'].text
	end
	if xml_element.elements['expiry'] != nil
		self.expiry = xml_element.elements['expiry'].text
	end
	if xml_element.elements['sessionType'] != nil
		self.session_type = xml_element.elements['sessionType'].text
	end
	if xml_element.elements['sessionUserId'] != nil
		self.session_user_id = xml_element.elements['sessionUserId'].text
	end
	if xml_element.elements['sessionDuration'] != nil
		self.session_duration = xml_element.elements['sessionDuration'].text
	end
	if xml_element.elements['sessionPrivileges'] != nil
		self.session_privileges = xml_element.elements['sessionPrivileges'].text
	end
	if xml_element.elements['hashType'] != nil
		self.hash_type = xml_element.elements['hashType'].text
	end
	if xml_element.elements['description'] != nil
		self.description = xml_element.elements['description'].text
	end
end