Class: Bagel::Video::Padding

Inherits:
Object
  • Object
show all
Defined in:
lib/bagel/video/padding.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs) ⇒ Padding

Returns a new instance of Padding.



5
6
7
# File 'lib/bagel/video/padding.rb', line 5

def initialize(attrs)
  @x, @y = attrs[:x], attrs[:y]
end

Instance Attribute Details

#xObject (readonly)

Returns the value of attribute x.



3
4
5
# File 'lib/bagel/video/padding.rb', line 3

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y.



3
4
5
# File 'lib/bagel/video/padding.rb', line 3

def y
  @y
end