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).
-
#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)
336 337 338 |
# File 'lib/kaltura_types.rb', line 336 def created_at @created_at end |
#expiry ⇒ Object
Expiry time of current token (unix timestamp in seconds)
345 346 347 |
# File 'lib/kaltura_types.rb', line 345 def expiry @expiry end |
#hash_type ⇒ Object
Returns the value of attribute hash_type.
358 359 360 |
# File 'lib/kaltura_types.rb', line 358 def hash_type @hash_type end |
#id ⇒ Object
The id of the application token
329 330 331 |
# File 'lib/kaltura_types.rb', line 329 def id @id end |
#partner_id ⇒ Object
Returns the value of attribute partner_id.
333 334 335 |
# File 'lib/kaltura_types.rb', line 333 def partner_id @partner_id end |
#session_duration ⇒ Object
Expiry duration of KS (Kaltura Session) that created using the current token (in seconds)
354 355 356 |
# File 'lib/kaltura_types.rb', line 354 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
357 358 359 |
# File 'lib/kaltura_types.rb', line 357 def session_privileges @session_privileges end |
#session_type ⇒ Object
Type of KS (Kaltura Session) that created using the current token
348 349 350 |
# File 'lib/kaltura_types.rb', line 348 def session_type @session_type end |
#session_user_id ⇒ Object
User id of KS (Kaltura Session) that created using the current token
351 352 353 |
# File 'lib/kaltura_types.rb', line 351 def session_user_id @session_user_id end |
#status ⇒ Object
Application token status
342 343 344 |
# File 'lib/kaltura_types.rb', line 342 def status @status end |
#token ⇒ Object
The application token
332 333 334 |
# File 'lib/kaltura_types.rb', line 332 def token @token end |
#updated_at ⇒ Object
Update time as Unix timestamp (In seconds)
339 340 341 |
# File 'lib/kaltura_types.rb', line 339 def updated_at @updated_at end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 |
# File 'lib/kaltura_types.rb', line 382 def from_xml(xml_element) super self.id = xml_element.elements['id'].text self.token = xml_element.elements['token'].text self.partner_id = xml_element.elements['partnerId'].text self.created_at = xml_element.elements['createdAt'].text self.updated_at = xml_element.elements['updatedAt'].text self.status = xml_element.elements['status'].text self.expiry = xml_element.elements['expiry'].text self.session_type = xml_element.elements['sessionType'].text self.session_user_id = xml_element.elements['sessionUserId'].text self.session_duration = xml_element.elements['sessionDuration'].text self.session_privileges = xml_element.elements['sessionPrivileges'].text self.hash_type = xml_element.elements['hashType'].text end |