class CLI::DPS
Constants
- DPS_PLAYS
Public Class Methods
all()
click to toggle source
# File lib/prls/dps.rb, line 10 def self.all DPS_PLAYS end
get_details(index)
click to toggle source
# File lib/prls/dps.rb, line 27 def self.get_details(index) if self.all[index].need_attr? self.all[index].add_attr(PRLS::CLI::Scraper.new.dps_info(self.all[index].url)) end end
get_plays()
click to toggle source
# File lib/prls/dps.rb, line 14 def self.get_plays if self.all.empty? url = "https://www.dramatists.com/dps/nowpublished.aspx" self.new_from_scrape(PRLS::CLI::Scraper.new.dps_index(url)) end end
list_plays()
click to toggle source
Calls superclass method
# File lib/prls/dps.rb, line 21 def self.list_plays puts "" puts "Here are Dramatist's Play Service, Inc.'s featured plays:" super end
new(attributes)
click to toggle source
Calls superclass method
# File lib/prls/dps.rb, line 5 def initialize(attributes) super DPS_PLAYS << self end