Method: Grubby::Scraper#[]

Defined in:
lib/grubby/scraper.rb

#[](field) ⇒ Object

Returns the scraped value named by field.

Parameters:

Returns:

  • (Object)

Raises:

  • (RuntimeError)

    if field is not a valid name



249
250
251
# File 'lib/grubby/scraper.rb', line 249

def [](field)
  @scraped.fetch(field.to_sym)
end