Module: Capitan::ShowMethods

Included in:
Exhibition, NonTicketedEvent, Performance, Production
Defined in:
lib/capitan/show_methods.rb

Instance Method Summary collapse

Instance Method Details

#alphabetical_titleObject



23
24
25
26
# File 'lib/capitan/show_methods.rb', line 23

def alphabetical_title
  return "#{@title.gsub(/^The /, '')}, The" if @title.match(/^The /)
  @title
end

#performancesObject



3
4
5
# File 'lib/capitan/show_methods.rb', line 3

def performances
  @production_performances || []
end

#performances=(performances_json) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/capitan/show_methods.rb', line 11

def performances=(performances_json)
  perfs = []
  performances_json.each do |performance_json|
    perfs << Capitan::Performance.new(performance_json)
  end
  @production_performances = perfs
end

#venueObject



7
8
9
# File 'lib/capitan/show_methods.rb', line 7

def venue
  @production_venue
end

#venue=(venue_hash) ⇒ Object



19
20
21
# File 'lib/capitan/show_methods.rb', line 19

def venue=(venue_hash)
  @production_venue = Capitan::Venue.new(venue_hash)
end