Class: Poser::Comment

Inherits:
Object
  • Object
show all
Defined in:
lib/poser/comment.rb

Class Method Summary collapse

Class Method Details

.negative(name = nil) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/poser/comment.rb', line 12

def self.negative(name=nil)
  if name
    ["#{name.capitalize}, Never hang out with me again.", "#{name.capitalize} is the worst person on this platform.", "#{name.capitalize} is doing a horrendous job."].sample
  else
    ["I cannot disagree more.", "You don't look good in this post", "Yikes"].sample
  end
end

.neutral(name = nil) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/poser/comment.rb', line 20

def self.neutral(name=nil)
  if name
    ["#{name.capitalize}, I could go either way, to be honest.", "#{name.capitalize} is just ok.", "#{name.capitalize} is doing an average job."].sample
  else
    ["I guess.", "I'm really not certain.", "It doesn't really matter to me."].sample
  end
end

.positive(name = nil) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/poser/comment.rb', line 4

def self.positive(name=nil)
  if name
    ["#{name.capitalize}! Let's hang out some time.", "#{name.capitalize} is my favorite person on this platform.", "#{name.capitalize} is doing an amazing job."].sample
  else
    ["I couldn't agree more.", "This is why I downloaded this app.", "Hilarious!", "So good to hear!"].sample
  end
end