diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2009-07-23 22:24:29 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2009-07-23 22:24:29 -0700 |
commit | 518fd933403911ed23658c31e945cf88f44d462f (patch) | |
tree | 71806b5a048ff17a55ab1b6d852b05518292cb1a /libmpd | |
parent | a421c6c2baea85c0632ca5f2a3f8dc06c2833254 (diff) | |
download | ruby-libmpd-518fd933403911ed23658c31e945cf88f44d462f.tar.gz ruby-libmpd-518fd933403911ed23658c31e945cf88f44d462f.tar.xz |
New file for methods dealing with MPD status.
Diffstat (limited to 'libmpd')
-rw-r--r-- | libmpd/status.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libmpd/status.rb b/libmpd/status.rb new file mode 100644 index 0000000..de00e07 --- /dev/null +++ b/libmpd/status.rb @@ -0,0 +1,22 @@ +#!/usr/bin/env ruby +# +# Copyright 2009 David Vazgenovich Shakaryan <dvshakaryan@gmail.com> +# Distributed under the terms of the GNU General Public License v3. +# See http://www.gnu.org/licenses/gpl.txt for the full license text. + +module MPDStatus + # Returns a Hash containing information about the current song. + def currentsong + return generate_hash send_request 'currentsong' + end + + # Returns a Hash containing the current status. + def status + return generate_hash send_request 'status' + end + + # Returns a Hash containing statistics. + def stats + return generate_hash send_request 'stats' + end +end |