class CLI::MTI

Constants

MTI_PLAYS

Public Class Methods

all() click to toggle source
# File lib/prls/mti.rb, line 10
def self.all
    MTI_PLAYS
end
get_details(index) click to toggle source
# File lib/prls/mti.rb, line 27
def self.get_details(index)
    if self.all[index].need_attr?
        self.all[index].add_attr(PRLS::CLI::Scraper.new.mti_info(self.all[index].url))
    end
end
get_plays() click to toggle source
# File lib/prls/mti.rb, line 14
def self.get_plays
    if self.all.empty?
        url = "https://www.mtishows.com/shows/all"
        self.new_from_scrape(PRLS::CLI::Scraper.new.mti_index(url))
    end
end
list_plays() click to toggle source
Calls superclass method
# File lib/prls/mti.rb, line 21
def self.list_plays
    puts ""
    puts "Here are Music Theatre International's featured plays:"
    super
end
new(attributes) click to toggle source
Calls superclass method
# File lib/prls/mti.rb, line 5
def initialize(attributes)
    super
    MTI_PLAYS << self
end