class Classifieds::Boat
Constants
- SUMMARY_COL_FORMATS
Public Class Methods
new(year, make, model, price, condition, detail_link)
click to toggle source
Calls superclass method
Classifieds::Vehicle::new
# File lib/classifieds/boat.rb, line 5 def initialize(year, make, model, price, condition, detail_link) super(year, make, model, price, condition, detail_link) end
scrape_results_detail_page(detail_doc, item_condition, detail_values)
click to toggle source
Returns detail attributes and values in detail_values hash
# File lib/classifieds/boat.rb, line 15 def self.scrape_results_detail_page(detail_doc, item_condition, detail_values) Classifieds::BoatScraper.scrape_results_detail_page(detail_doc, item_condition, detail_values) end
scrape_results_page(results_url, results_url_file, results_doc)
click to toggle source
Creates listings from summary web page
# File lib/classifieds/boat.rb, line 10 def self.scrape_results_page(results_url, results_url_file, results_doc) Classifieds::BoatScraper.scrape_results_page(results_url, results_url_file, results_doc, self) end
summary_header()
click to toggle source
Returns the summary listing title row
# File lib/classifieds/boat.rb, line 25 def self.summary_header Classifieds::Listing.format_cols(['Boat', 'Price '], SUMMARY_COL_FORMATS) end
Public Instance Methods
summary_detail()
click to toggle source
Returns a summary listing data row
# File lib/classifieds/boat.rb, line 20 def summary_detail Classifieds::Listing.format_cols([@title, @price], SUMMARY_COL_FORMATS) end