Class: Kaltura::KalturaAppToken
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaAppToken
- Defined in:
- lib/kaltura_types.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Creation time as Unix timestamp (In seconds).
-
#description ⇒ Object
Returns the value of attribute description.
-
#expiry ⇒ Object
Expiry time of current token (unix timestamp in seconds).
-
#hash_type ⇒ Object
Returns the value of attribute hash_type.
-
#id ⇒ Object
The id of the application token.
-
#partner_id ⇒ Object
Returns the value of attribute partner_id.
-
#session_duration ⇒ Object
Expiry duration of KS (Kaltura Session) that created using the current token (in seconds).
-
#session_privileges ⇒ Object
Comma separated privileges to be applied on KS (Kaltura Session) that created using the current token.
-
#session_type ⇒ Object
Type of KS (Kaltura Session) that created using the current token.
-
#session_user_id ⇒ Object
User id of KS (Kaltura Session) that created using the current token.
-
#status ⇒ Object
Application token status.
-
#token ⇒ Object
The application token.
-
#updated_at ⇒ Object
Update time as Unix timestamp (In seconds).
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#created_at ⇒ Object
Creation time as Unix timestamp (In seconds)
487 488 489 |
# File 'lib/kaltura_types.rb', line 487 def created_at @created_at end |
#description ⇒ Object
Returns the value of attribute description.
503 504 505 |
# File 'lib/kaltura_types.rb', line 503 def description @description end |
#expiry ⇒ Object
Expiry time of current token (unix timestamp in seconds)
493 494 495 |
# File 'lib/kaltura_types.rb', line 493 def expiry @expiry end |
#hash_type ⇒ Object
Returns the value of attribute hash_type.
502 503 504 |
# File 'lib/kaltura_types.rb', line 502 def hash_type @hash_type end |
#id ⇒ Object
The id of the application token
482 483 484 |
# File 'lib/kaltura_types.rb', line 482 def id @id end |
#partner_id ⇒ Object
Returns the value of attribute partner_id.
485 486 487 |
# File 'lib/kaltura_types.rb', line 485 def partner_id @partner_id end |
#session_duration ⇒ Object
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_privileges ⇒ Object
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_type ⇒ Object
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_id ⇒ Object
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 |
#status ⇒ Object
Application token status
491 492 493 |
# File 'lib/kaltura_types.rb', line 491 def status @status end |
#token ⇒ Object
The application token
484 485 486 |
# File 'lib/kaltura_types.rb', line 484 def token @token end |
#updated_at ⇒ Object
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 |