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.
-
#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 |
#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 16 17 |
# File 'lib/imuze/get_music.rb', line 13 def call sh command do |stdout, stderr| puts 'We hope you liked it !' end end |