Class: Bagel::Video::Padding
- Inherits:
-
Object
- Object
- Bagel::Video::Padding
- Defined in:
- lib/bagel/video/padding.rb
Instance Attribute Summary collapse
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Padding
constructor
A new instance of Padding.
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
#x ⇒ Object (readonly)
Returns the value of attribute x.
3 4 5 |
# File 'lib/bagel/video/padding.rb', line 3 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
3 4 5 |
# File 'lib/bagel/video/padding.rb', line 3 def y @y end |