Class: Manifique::WebClient
- Inherits:
-
Object
- Object
- Manifique::WebClient
- Defined in:
- lib/manifique/web_client.rb
Instance Method Summary collapse
- #fetch_metadata ⇒ Object
-
#initialize(options = {}) ⇒ WebClient
constructor
A new instance of WebClient.
Constructor Details
#initialize(options = {}) ⇒ WebClient
Returns a new instance of WebClient.
11 12 13 14 15 |
# File 'lib/manifique/web_client.rb', line 11 def initialize(={}) = @url = [:url] = Metadata.new(url: @url) end |
Instance Method Details
#fetch_metadata ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/manifique/web_client.rb', line 17 def fetch_website if manifest = fetch_web_manifest .load_from_web_manifest(manifest) end .load_from_html(@html) end |