Class: RubyPocket::Cli::AddAction

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_pocket/cli/add_action.rb

Instance Method Summary collapse

Instance Method Details

#call(options) ⇒ Object



4
5
6
7
8
9
# File 'lib/ruby_pocket/cli/add_action.rb', line 4

def call(options)
  creator = FavoriteCreator.new(options.values)
  creator.save

  puts "Favorite '#{creator.name}' created!"
end