Class: Imuze::GetMusic
- Inherits:
-
Struct
- Object
- Struct
- Imuze::GetMusic
- Includes:
- Methadone::CLILogging, Methadone::SH
- Defined in:
- lib/imuze/get_music.rb
Instance Attribute Summary collapse
-
#mp3_uri ⇒ Object
Returns the value of attribute mp3_uri.
-
#options ⇒ Object
Returns the value of attribute options.
-
#token ⇒ Object
Returns the value of attribute token.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#mp3_uri ⇒ Object
Returns the value of attribute mp3_uri
2 3 4 |
# File 'lib/imuze/get_music.rb', line 2 def mp3_uri @mp3_uri end |
#options ⇒ Object
Returns the value of attribute options
2 3 4 |
# File 'lib/imuze/get_music.rb', line 2 def @options end |
#token ⇒ Object
Returns the value of attribute token
2 3 4 |
# File 'lib/imuze/get_music.rb', line 2 def token @token end |
Class Method Details
.call(*args) ⇒ Object
9 10 11 |
# File 'lib/imuze/get_music.rb', line 9 def self.call(*args) new(*args).call end |
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'lib/imuze/get_music.rb', line 13 def call download? ? command_download : command_play end |