Module: Capitan::ShowMethods
- Included in:
- Exhibition, NonTicketedEvent, Performance, Production
- Defined in:
- lib/capitan/show_methods.rb
Instance Method Summary collapse
- #alphabetical_title ⇒ Object
- #performances ⇒ Object
- #performances=(performances_json) ⇒ Object
- #venue ⇒ Object
- #venue=(venue_hash) ⇒ Object
Instance Method Details
#alphabetical_title ⇒ Object
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 |
#performances ⇒ Object
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 |
#venue ⇒ Object
7 8 9 |
# File 'lib/capitan/show_methods.rb', line 7 def venue @production_venue end |