Class: RQTRotate::Movie
- Inherits:
-
Object
- Object
- RQTRotate::Movie
- Defined in:
- lib/rqtrotate/movie.rb
Instance Attribute Summary collapse
-
#stream ⇒ Object
Returns the value of attribute stream.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(stream, owns_stream = false) ⇒ Movie
constructor
A new instance of Movie.
- #rotation ⇒ Object
- #rotation=(value) ⇒ Object
Constructor Details
#initialize(stream, owns_stream = false) ⇒ Movie
Returns a new instance of Movie.
37 38 39 40 |
# File 'lib/rqtrotate/movie.rb', line 37 def initialize(stream, owns_stream = false) @stream = stream @owns_stream = owns_stream end |
Instance Attribute Details
#stream ⇒ Object
Returns the value of attribute stream.
18 19 20 |
# File 'lib/rqtrotate/movie.rb', line 18 def stream @stream end |
Class Method Details
Instance Method Details
#rotation ⇒ Object
25 26 27 28 29 |
# File 'lib/rqtrotate/movie.rb', line 25 def rotation rotation = get_rotation @stream reset_stream rotation end |
#rotation=(value) ⇒ Object
20 21 22 23 |
# File 'lib/rqtrotate/movie.rb', line 20 def rotation=(value) set_rotation @stream, value reset_stream end |