Class: Kaltura::KalturaCropDimensions
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaCropDimensions
- Defined in:
- lib/kaltura_types.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
Crop height.
-
#left ⇒ Object
Crop left point.
-
#top ⇒ Object
Crop top point.
-
#width ⇒ Object
Crop width.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#height ⇒ Object
Crop height
3338 3339 3340 |
# File 'lib/kaltura_types.rb', line 3338 def height @height end |
#left ⇒ Object
Crop left point
3332 3333 3334 |
# File 'lib/kaltura_types.rb', line 3332 def left @left end |
#top ⇒ Object
Crop top point
3334 3335 3336 |
# File 'lib/kaltura_types.rb', line 3334 def top @top end |
#width ⇒ Object
Crop width
3336 3337 3338 |
# File 'lib/kaltura_types.rb', line 3336 def width @width end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 |
# File 'lib/kaltura_types.rb', line 3353 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 |