class CLI::BPP

Constants

BPP_PLAYS

Public Class Methods

all() click to toggle source
# File lib/prls/bpp.rb, line 10
def self.all
    BPP_PLAYS
end
get_details(index) click to toggle source
# File lib/prls/bpp.rb, line 27
def self.get_details(index)
    if self.all[index].need_attr?
        self.all[index].add_attr(PRLS::CLI::Scraper.new.bpp_info(self.all[index].url))
    end
end
get_plays() click to toggle source
# File lib/prls/bpp.rb, line 14
def self.get_plays
    if self.all.empty?
        url = "https://www.broadwayplaypub.com/catalog/plays/newly-published/?paged=&count=90"
        self.new_from_scrape(PRLS::CLI::Scraper.new.bpp_index(url))
    end
end
list_plays() click to toggle source
Calls superclass method
# File lib/prls/bpp.rb, line 21
def self.list_plays
    puts ""
    puts "Here are Broadway Play Publishing, Inc.'s featured plays:"
    super
end
new(attributes) click to toggle source
Calls superclass method
# File lib/prls/bpp.rb, line 5
def initialize(attributes)
    super
    BPP_PLAYS << self
end