class Hola
Public Class Methods
greet(name)
click to toggle source
# File lib/hola-leco.rb, line 26 def self.greet(name) puts "hello #{name}" end
hi(language = "english")
click to toggle source
# File lib/hola-leco.rb, line 35 def self.hi(language = "english") my_password = BCrypt::Password.create("my password") puts my_password translator = Translator.new(language) puts translator.hi end
options()
click to toggle source
# File lib/hola-leco.rb, line 30 def self.options @@options = Util.get_options if !@@options @@options end
test(param)
click to toggle source
# File lib/hola-leco.rb, line 19 def self.test(param) perform_async(param) end
Public Instance Methods
perform(param, model)
click to toggle source
# File lib/hola-leco.rb, line 12 def perform(param, model) puts 'holis' user = model.find(2) puts user.email puts "testing2 sidekiq #{param}" end