Class: Imuze::GetMusic

Inherits:
Struct
  • Object
show all
Includes:
Methadone::CLILogging, Methadone::SH
Defined in:
lib/imuze/get_music.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#mp3_uriObject

Returns the value of attribute mp3_uri

Returns:

  • (Object)

    the current value of mp3_uri



2
3
4
# File 'lib/imuze/get_music.rb', line 2

def mp3_uri
  @mp3_uri
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



2
3
4
# File 'lib/imuze/get_music.rb', line 2

def options
  @options
end

#tokenObject

Returns the value of attribute token

Returns:

  • (Object)

    the current value of 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

#callObject



13
14
15
# File 'lib/imuze/get_music.rb', line 13

def call
  download? ? command_download : command_play
end