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
3191 3192 3193 |
# File 'lib/kaltura_types.rb', line 3191 def height @height end |
#left ⇒ Object
Crop left point
3185 3186 3187 |
# File 'lib/kaltura_types.rb', line 3185 def left @left end |
#top ⇒ Object
Crop top point
3187 3188 3189 |
# File 'lib/kaltura_types.rb', line 3187 def top @top end |
#width ⇒ Object
Crop width
3189 3190 3191 |
# File 'lib/kaltura_types.rb', line 3189 def width @width end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 |
# File 'lib/kaltura_types.rb', line 3206 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 |