Class: RailsParseHead::Fetch
Constant Summary collapse
- CONTENT_TYPES =
%w[text/html text/plain].freeze
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(url, options = {}) ⇒ Fetch
constructor
A new instance of Fetch.
Methods inherited from Base
Constructor Details
#initialize(url, options = {}) ⇒ Fetch
Returns a new instance of Fetch.
7 8 9 |
# File 'lib/rails_parse_head/fetch.rb', line 7 def initialize(url, = {}) @html = document(request(url, )) end |