Class: EyeTV::Recording
- Inherits:
-
Object
- Object
- EyeTV::Recording
- Defined in:
- lib/recording.rb
Overview
This class represents an recording (audio or video) product by EyeTV
Instance Method Summary collapse
- #actual_duration ⇒ Object
- #actual_start ⇒ Object
- #busy? ⇒ Boolean
- #channel_number ⇒ Object
- #delete ⇒ Object
- #description ⇒ Object
- #description=(new_description) ⇒ Object
- #duration ⇒ Object
-
#initialize(recording_ref) ⇒ Recording
constructor
A new instance of Recording.
- #input_source ⇒ Object
- #location ⇒ Object
- #markers ⇒ Object
- #name ⇒ Object
- #name=(value) ⇒ Object
- #playback_position ⇒ Object
- #playback_position=(new_playback_position) ⇒ Object
- #postpad_time ⇒ Object
- #prepad_time ⇒ Object
- #preview_picture ⇒ Object
- #quality ⇒ Object
- #repeats ⇒ Object
- #start_time ⇒ Object
- #station_name ⇒ Object
- #title ⇒ Object
- #title=(title) ⇒ Object
- #to_s ⇒ Object
- #uid ⇒ Object
Constructor Details
#initialize(recording_ref) ⇒ Recording
Returns a new instance of Recording.
5 6 7 |
# File 'lib/recording.rb', line 5 def initialize(recording_ref) @recording_ref = recording_ref end |
Instance Method Details
#actual_duration ⇒ Object
69 70 71 |
# File 'lib/recording.rb', line 69 def actual_duration @recording_ref.actual_duration.get end |
#actual_start ⇒ Object
65 66 67 |
# File 'lib/recording.rb', line 65 def actual_start @recording_ref.actual_start.get end |
#busy? ⇒ Boolean
9 10 11 |
# File 'lib/recording.rb', line 9 def busy? @recording_ref.busy.get end |
#channel_number ⇒ Object
37 38 39 |
# File 'lib/recording.rb', line 37 def channel_number @recording_ref.channel_number.get end |
#delete ⇒ Object
105 106 107 |
# File 'lib/recording.rb', line 105 def delete @recording_ref.delete end |
#description ⇒ Object
29 30 31 |
# File 'lib/recording.rb', line 29 def description @recording_ref.description.get end |
#description=(new_description) ⇒ Object
33 34 35 |
# File 'lib/recording.rb', line 33 def description=(new_description) @recording_ref.description.set(new_description) end |
#duration ⇒ Object
17 18 19 |
# File 'lib/recording.rb', line 17 def duration @recording_ref.duration.get end |
#input_source ⇒ Object
45 46 47 |
# File 'lib/recording.rb', line 45 def input_source @recording_ref.input_source.get end |
#location ⇒ Object
93 94 95 |
# File 'lib/recording.rb', line 93 def location @recording_ref.location.get end |
#markers ⇒ Object
101 102 103 |
# File 'lib/recording.rb', line 101 def markers @recording_ref.markers.get end |
#name ⇒ Object
81 82 83 |
# File 'lib/recording.rb', line 81 def name @recording_ref.name.get end |
#name=(value) ⇒ Object
85 86 87 |
# File 'lib/recording.rb', line 85 def name=(value) @recording_ref.name.set(value) end |
#playback_position ⇒ Object
73 74 75 |
# File 'lib/recording.rb', line 73 def playback_position @recording_ref.actual_duration.get end |
#playback_position=(new_playback_position) ⇒ Object
77 78 79 |
# File 'lib/recording.rb', line 77 def playback_position=(new_playback_position) @recording_ref.actual_duration.set(new_playback_position) end |
#postpad_time ⇒ Object
61 62 63 |
# File 'lib/recording.rb', line 61 def postpad_time @recording_ref.postpad_time.get end |
#prepad_time ⇒ Object
57 58 59 |
# File 'lib/recording.rb', line 57 def prepad_time @recording_ref.prepad_time.get end |
#preview_picture ⇒ Object
97 98 99 |
# File 'lib/recording.rb', line 97 def preview_picture @recording_ref.preview_picture.get end |
#quality ⇒ Object
53 54 55 |
# File 'lib/recording.rb', line 53 def quality @recording_ref.quality.get end |
#repeats ⇒ Object
49 50 51 |
# File 'lib/recording.rb', line 49 def repeats @recording_ref.repeats.get end |
#start_time ⇒ Object
13 14 15 |
# File 'lib/recording.rb', line 13 def start_time @recording_ref.start_time.get end |
#station_name ⇒ Object
41 42 43 |
# File 'lib/recording.rb', line 41 def station_name @recording_ref.station_name.get end |
#title ⇒ Object
21 22 23 |
# File 'lib/recording.rb', line 21 def title @recording_ref.title.get end |
#title=(title) ⇒ Object
25 26 27 |
# File 'lib/recording.rb', line 25 def title=(title) @recording_ref.title.set(title) end |
#to_s ⇒ Object
109 110 111 |
# File 'lib/recording.rb', line 109 def to_s "uid : ".concat(self.uid.to_s).concat("; title : ").concat(self.title) end |
#uid ⇒ Object
89 90 91 |
# File 'lib/recording.rb', line 89 def uid @recording_ref.unique_ID.get end |