Class: Curation::Page
- Inherits:
-
Object
- Object
- Curation::Page
- Includes:
- Image, Jsonld, Metainspector, Nokogiri, PublicationDate, Raw, Text, Title
- Defined in:
- lib/curation.rb
Constant Summary
Constants included from Text
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
Instance Method Summary collapse
-
#initialize(url, html = nil) ⇒ Page
constructor
A new instance of Page.
Methods included from Text
Methods included from PublicationDate
Methods included from Image
Methods included from Title
Methods included from Nokogiri
Methods included from Metainspector
Methods included from Jsonld
#json_ld, #json_ld_from_object
Methods included from Raw
Constructor Details
#initialize(url, html = nil) ⇒ Page
Returns a new instance of Page.
33 34 35 36 37 |
# File 'lib/curation.rb', line 33 def initialize(url, html = nil) @url = url.to_s.gsub('http://', 'https://') @html = html @verbose = false end |
Instance Attribute Details
#url ⇒ Object (readonly)
Returns the value of attribute url.
30 31 32 |
# File 'lib/curation.rb', line 30 def url @url end |
#verbose ⇒ Object
Returns the value of attribute verbose.
31 32 33 |
# File 'lib/curation.rb', line 31 def verbose @verbose end |