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
3133 3134 3135 |
# File 'lib/kaltura_types.rb', line 3133 def height @height end |
#left ⇒ Object
Crop left point
3127 3128 3129 |
# File 'lib/kaltura_types.rb', line 3127 def left @left end |
#top ⇒ Object
Crop top point
3129 3130 3131 |
# File 'lib/kaltura_types.rb', line 3129 def top @top end |
#width ⇒ Object
Crop width
3131 3132 3133 |
# File 'lib/kaltura_types.rb', line 3131 def width @width end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 |
# File 'lib/kaltura_types.rb', line 3148 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 |