class VideoBlur::Box

Public Class Methods

new(x:, y:, width:, height:, ratio: 1) click to toggle source
# File lib/video_blur/box.rb, line 3
def initialize(x:, y:, width:, height:, ratio: 1)
  @x = x
  @y = y
  @width = width
  @height = height
  @ratio = ratio
end

Public Instance Methods

height() click to toggle source
# File lib/video_blur/box.rb, line 23
def height
  (@height * @ratio).to_i
end
width() click to toggle source
# File lib/video_blur/box.rb, line 19
def width
  (@width * @ratio).to_i
end
x() click to toggle source
# File lib/video_blur/box.rb, line 11
def x      
  (@x * @ratio).to_i
end
y() click to toggle source
# File lib/video_blur/box.rb, line 15
def y
  (@y * @ratio).to_i
end