Method: Html2rss::AutoSource::Scraper::Schema::Thing#call

Defined in:
lib/html2rss/auto_source/scraper/schema/thing.rb

#callHash

Returns the scraped article hash with DEFAULT_ATTRIBUTES.

Returns:

  • (Hash)

    the scraped article hash with DEFAULT_ATTRIBUTES


43
44
45
46
47
# File 'lib/html2rss/auto_source/scraper/schema/thing.rb', line 43

def call
  DEFAULT_ATTRIBUTES.to_h do |attribute|
    [attribute, public_send(attribute)]
  end
end