Class: IMP3::CLI

Inherits:
Object
  • Object
show all
Includes:
Commands, Singleton
Defined in:
lib/imp3/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from IMP3::Commands::Genres

#genres_fetch_cache_command, #genres_fetch_command, #genres_ignore_add_command, #genres_ignore_del_command, #genres_ignore_list_command, #genres_list_command

Methods included from IMP3::Commands::Artists

#artists_misspelled_command

Constructor Details

#initializeCLI

Returns a new instance of CLI.



22
23
24
25
26
# File 'lib/imp3/cli.rb', line 22

def initialize
  @source_origin = :library
  @config = IMP3::Config.instance
  @cache = IMP3::Cache.instance
end

Instance Attribute Details

#cacheObject (readonly)

Returns the value of attribute cache.



19
20
21
# File 'lib/imp3/cli.rb', line 19

def cache
  @cache
end

#configObject (readonly)

Returns the value of attribute config.



19
20
21
# File 'lib/imp3/cli.rb', line 19

def config
  @config
end

#source_originObject

Returns the value of attribute source_origin.



20
21
22
# File 'lib/imp3/cli.rb', line 20

def source_origin
  @source_origin
end