lib/ratebeer/scraping.rb
# Return full details of the scraped entity in a Hash.
#
Return full details of the scraped entity in a Hash.
Return full details of the scraped entity in a Hash .
def full_details
      data = self.class
                 .data_keys
                 .map { |k| [k, send("#{k}")] }
                 .to_h
      { id:   id,
        url:  url }.merge(data)
    end
def full_details data = self . class . data_keys . map { | k | [ k , send ( "#{k}" ) ] } . to_h { id : id , url : url } . merge ( data ) end
Return full details of the scraped entity in a Hash.
Return full details of the scraped entity in a Hash .