Class: Linkser::Objects::HTML

Inherits:
Linkser::Object show all
Defined in:
lib/linkser/objects/html.rb

Instance Attribute Summary

Attributes inherited from Linkser::Object

#head, #last_url, #url

Instance Method Summary collapse

Methods inherited from Linkser::Object

#body, #build_body, #initialize

Constructor Details

This class inherits a constructor from Linkser::Object

Instance Method Details

#descriptionObject



13
14
15
# File 'lib/linkser/objects/html.rb', line 13

def description
  @description ||= build_description
end

#imagesObject



17
18
19
# File 'lib/linkser/objects/html.rb', line 17

def images
  @images ||= build_images
end

#nokogiriObject



21
22
23
# File 'lib/linkser/objects/html.rb', line 21

def nokogiri
  @nokogiri ||= Nokogiri::HTML(body)
end

#ogpObject



25
26
27
# File 'lib/linkser/objects/html.rb', line 25

def ogp
  @ogp ||= build_ogp
end

#resourceObject



29
30
31
# File 'lib/linkser/objects/html.rb', line 29

def resource
  @resource ||= build_resource
end

#titleObject



9
10
11
# File 'lib/linkser/objects/html.rb', line 9

def title
  @title ||= build_title
end