Class: RedRocks::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/red_rocks/cli.rb

Instance Method Summary collapse

Instance Method Details

#callObject



5
6
7
8
# File 'lib/red_rocks/cli.rb', line 5

def call
  welcome
  show_concert
end

#show_concertObject



20
21
22
23
24
25
26
27
28
29
# File 'lib/red_rocks/cli.rb', line 20

def show_concert
  @concert = RedRocks::Concert.next_show
  puts ""
  puts "#{@concert.name}".bold
  puts "#{@concert.opener}"
  puts "On #{@concert.date} at #{@concert.time}"
  puts "For tickets and more information, please visit:".cyan
  puts "#{@concert.tickets_URL}"
  puts ""
end

#welcomeObject



10
11
12
13
14
15
16
17
18
# File 'lib/red_rocks/cli.rb', line 10

def welcome
  puts ""
  puts "   //                                            \\\\".red.bold
  puts "  ////                                          \\\\\\\\".red.bold
  puts " /// Welcome to Red Rocks Park and Amphitheatre!! \\\\\\".red.bold
  puts "////                                              \\\\\\\\".red.bold
  puts ""
  puts "The next show:"
end