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
3299 3300 3301 |
# File 'lib/kaltura_types.rb', line 3299 def height @height end |
#left ⇒ Object
Crop left point
3293 3294 3295 |
# File 'lib/kaltura_types.rb', line 3293 def left @left end |
#top ⇒ Object
Crop top point
3295 3296 3297 |
# File 'lib/kaltura_types.rb', line 3295 def top @top end |
#width ⇒ Object
Crop width
3297 3298 3299 |
# File 'lib/kaltura_types.rb', line 3297 def width @width end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 |
# File 'lib/kaltura_types.rb', line 3314 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 |