class CLI::PLAYSCRIPTS
Constants
- PLAYSCRIPTS_PLAYS
Public Class Methods
all()
click to toggle source
# File lib/prls/playscripts.rb, line 10 def self.all PLAYSCRIPTS_PLAYS end
get_details(index)
click to toggle source
# File lib/prls/playscripts.rb, line 27 def self.get_details(index) if self.all[index].need_attr? self.all[index].add_attr(PRLS::CLI::Scraper.new.playscripts_info(self.all[index].url)) end end
get_plays()
click to toggle source
# File lib/prls/playscripts.rb, line 14 def self.get_plays if self.all.empty? url = "https://www.playscripts.com/find-a-play?sort=recentpopularity" self.new_from_scrape(PRLS::CLI::Scraper.new.playscripts_index(url)) end end
list_plays()
click to toggle source
Calls superclass method
# File lib/prls/playscripts.rb, line 21 def self.list_plays puts "" puts "Here are Playscripts, Inc.'s featured plays:" super end
new(attributes)
click to toggle source
Calls superclass method
# File lib/prls/playscripts.rb, line 5 def initialize(attributes) super PLAYSCRIPTS_PLAYS << self end