class CheckYourself

Public Class Methods

give_a_suggestion() click to toggle source
# File lib/check_yourself.rb, line 3
def self.give_a_suggestion
  suggestions[get_random_key]
end

Private Class Methods

get_random_key() click to toggle source
# File lib/check_yourself.rb, line 19
def self.get_random_key
  rand(1..suggestions.count)
end
suggestions() click to toggle source
# File lib/check_yourself.rb, line 8
def self.suggestions
  {
    1 => "Take a walk",
    2 => "Get some coffee",
    3 => "Eat a snack",
    4 => "Get the hell out of there",
    5 => "Use smiler",
    6 => "Use inspiration"
  }
end