Method: Html2rss::AutoSource::Scraper::Schema::Thing#id
- Defined in:
- lib/html2rss/auto_source/scraper/schema/thing.rb
#id ⇒ Object
49 50 51 52 53 54 55 56 57 |
# File 'lib/html2rss/auto_source/scraper/schema/thing.rb', line 49 def id return @id if defined?(@id) id = (schema_object[:@id] || url&.path).to_s return if id.empty? @id = id end |