Sha256: f4bc2e56c5c356f909feccd641e67f49fd4cd74cc7e390d8411c60dd1fc2b293
Contents?: true
Size: 874 Bytes
Versions: 5
Compression:
Stored size: 874 Bytes
Contents
# Specifications for the CLI Assessment Specs: - [X] Have a CLI for interfacing with the application The user interacts with the application through the CLI. Getting prompted for input from the start of the program. - [X] Pull data from an external source The data the CLI shows is scraped with Nokogiri and open-uri from [dev.to](https://dev.to/) - [X] Implement both list and detail views When the program runs, the Scraper class gets called with the method #make-posts that instantiates new instances of Post. The CLI method #list-posts then iterates through the instances of Post and prints them for the user. When the user types in a post number to read, the CLI uses the Post #find method to find the Post. It then calls the Scraper method #make-content to scrape the content of the post and prints it for the user with the #print-post method.
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
dev_to-0.1.5 | spec.md |
dev_to-0.1.4 | spec.md |
dev_to-0.1.3 | spec.md |
dev_to-0.1.2 | spec.md |
dev_to-0.1.0 | spec.md |