Class: Curation::Page
- Inherits:
-
Object
- Object
- Curation::Page
- Includes:
- Image, Jsonld, Metainspector, Nokogiri, PublicationDate, Raw, Text, Title
- Defined in:
- lib/curation.rb
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.
34 35 36 37 38 |
# File 'lib/curation.rb', line 34 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.
31 32 33 |
# File 'lib/curation.rb', line 31 def url @url end |
#verbose ⇒ Object
Returns the value of attribute verbose.
32 33 34 |
# File 'lib/curation.rb', line 32 def verbose @verbose end |