app/models/video_interactive.rb
# returns the aspect ratio of the interactive, determined by dividing the width by the height.
# So for an interactive with a native width of 400 and native height of 200, the aspect_ratio
# will be 2.
returns the aspect ratio of the interactive, determined by dividing the width by the height.
So for an interactive with a native width of 400 and native height of 200, the aspect_ratio
will be 2.
returns the aspect ratio of the interactive determined by dividing the width by the height . So for an interactive with a native width of 400 and native height of 200 the aspect_ratio will be 2 .
def aspect_ratio
    if self.width && self.height
      return self.width/self.height.to_f
    else
      return 1.324 
    end
  end
def aspect_ratio if self . width && self . height return self . width / self . height . to_f else return 1.324 end end
returns the aspect ratio of the interactive, determined by dividing the width by the height.
returns the aspect ratio of the interactive determined by dividing the width by the height .
# Derived from the default values, above