Method: StackOverflowApi::Question#summary

Defined in:
lib/chid/stack_overflow_api.rb

#summaryObject



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/chid/stack_overflow_api.rb', line 4

def summary
  published_at = creation_date.nil? ? 'unkown' : creation_date.strftime("%B %d, %Y")
  print "\n"
  print "--- #{title} ---".blue
  print "\n"
  print "  Posted #{published_at} by ".brown
  print "\n"
  print "  Link: "
  print "#{link}".cyan.underline
  print "\n"
end