class Kaltura::KalturaCropDimensions

Attributes

height[RW]

Crop height

left[RW]

Crop left point

top[RW]

Crop top point

width[RW]

Crop width

Public Instance Methods

from_xml(xml_element) click to toggle source
Calls superclass method Kaltura::KalturaObjectBase#from_xml
# File lib/kaltura_types.rb, line 3279
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
height=(val) click to toggle source
# File lib/kaltura_types.rb, line 3275
def height=(val)
        @height = val.to_i
end
left=(val) click to toggle source
# File lib/kaltura_types.rb, line 3266
def left=(val)
        @left = val.to_i
end
top=(val) click to toggle source
# File lib/kaltura_types.rb, line 3269
def top=(val)
        @top = val.to_i
end
width=(val) click to toggle source
# File lib/kaltura_types.rb, line 3272
def width=(val)
        @width = val.to_i
end