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)



336
337
338
# File 'lib/kaltura_types.rb', line 336

def created_at
  @created_at
end

#expiryObject

Expiry time of current token (unix timestamp in seconds)



345
346
347
# File 'lib/kaltura_types.rb', line 345

def expiry
  @expiry
end

#hash_typeObject

Returns the value of attribute hash_type.



358
359
360
# File 'lib/kaltura_types.rb', line 358

def hash_type
  @hash_type
end

#idObject

The id of the application token



329
330
331
# File 'lib/kaltura_types.rb', line 329

def id
  @id
end

#partner_idObject

Returns the value of attribute partner_id.



333
334
335
# File 'lib/kaltura_types.rb', line 333

def partner_id
  @partner_id
end

#session_durationObject

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_privilegesObject

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_typeObject

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_idObject

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

#statusObject

Application token status



342
343
344
# File 'lib/kaltura_types.rb', line 342

def status
  @status
end

#tokenObject

The application token



332
333
334
# File 'lib/kaltura_types.rb', line 332

def token
  @token
end

#updated_atObject

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