Class: Manifique::WebClient

Inherits:
Object
  • Object
show all
Defined in:
lib/manifique/web_client.rb

Instance Method Summary collapse

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(options={})
  @options = options
  @url = options[:url]
   = .new(url: @url)
end

Instance Method Details

#fetch_metadataObject



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