class Faker::Bot::Base
Constants
- Error
Public Instance Methods
list(filter = nil)
click to toggle source
# File lib/faker/bot.rb, line 27 def list(filter = nil) if options[:help] invoke :help, ['list'] else filter_options = options.merge(filter: filter) Faker::Bot::Commands::List.new(filter_options).execute end end
search(query)
click to toggle source
# File lib/faker/bot.rb, line 43 def search(query) if options[:help] invoke :help, ['search'] else Faker::Bot::Commands::Search.new(options).execute(query) end end
version()
click to toggle source
# File lib/faker/bot.rb, line 15 def version puts "v#{Faker::Bot::VERSION}" end