Class: Itunes::Volume
Class Method Summary
collapse
execute_script, execute_template_based_script, generate_script_from_template, script_base_dir, script_tmp_dir
Class Method Details
.down(level = 10) ⇒ Object
13
14
15
16
|
# File 'lib/itunes/volume.rb', line 13
def down(level = 10)
execute_script("#{script_dir}/down.scpt", level)
self
end
|
.mute ⇒ Object
18
19
20
21
|
# File 'lib/itunes/volume.rb', line 18
def mute
execute_script("#{script_dir}/mute.scpt")
self
end
|
.unmute ⇒ Object
23
24
25
26
|
# File 'lib/itunes/volume.rb', line 23
def unmute
execute_script("#{script_dir}/unmute.scpt")
self
end
|
.up(level = 10) ⇒ Object
8
9
10
11
|
# File 'lib/itunes/volume.rb', line 8
def up(level = 10)
execute_script("#{script_dir}/up.scpt", level)
self
end
|
.value ⇒ Object
28
29
30
|
# File 'lib/itunes/volume.rb', line 28
def value
execute_script("#{script_dir}/value.scpt").to_i
end
|