Class: Kaltura::KalturaCropDimensions

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

#heightObject

Crop height



3352
3353
3354
# File 'lib/kaltura_types.rb', line 3352

def height
  @height
end

#leftObject

Crop left point



3346
3347
3348
# File 'lib/kaltura_types.rb', line 3346

def left
  @left
end

#topObject

Crop top point



3348
3349
3350
# File 'lib/kaltura_types.rb', line 3348

def top
  @top
end

#widthObject

Crop width



3350
3351
3352
# File 'lib/kaltura_types.rb', line 3350

def width
  @width
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
# File 'lib/kaltura_types.rb', line 3367

def from_xml(xml_element)
	super
	if xml_element.elements['left'] != nil
		self.left = xml_element.elements['left'].text
	end
	if xml_element.elements['top'] != nil
		self.top = xml_element.elements['top'].text
	end
	if xml_element.elements['width'] != nil
		self.width = xml_element.elements['width'].text
	end
	if xml_element.elements['height'] != nil
		self.height = xml_element.elements['height'].text
	end
end