Class: ThumbnailScraper::HttpReceiver
- Inherits:
-
Object
- Object
- ThumbnailScraper::HttpReceiver
- Defined in:
- lib/thumbnail_scraper/http_receiver.rb
Instance Attribute Summary collapse
-
#http_client ⇒ Object
Returns the value of attribute http_client.
Instance Method Summary collapse
-
#initialize ⇒ HttpReceiver
constructor
A new instance of HttpReceiver.
- #receive_webpage(url) ⇒ Object
Constructor Details
#initialize ⇒ HttpReceiver
Returns a new instance of HttpReceiver.
8 9 10 |
# File 'lib/thumbnail_scraper/http_receiver.rb', line 8 def initialize @http_client = ::HTTPClient.new end |
Instance Attribute Details
#http_client ⇒ Object
Returns the value of attribute http_client.
6 7 8 |
# File 'lib/thumbnail_scraper/http_receiver.rb', line 6 def http_client @http_client end |