Class: Reading::Parsing::Attributes::Author

Inherits:
Attribute show all
Defined in:
lib/reading/parsing/attributes/author.rb

Overview

Transformer for the :author item attribute.

Instance Method Summary collapse

Instance Method Details

#transform_from_parsed(parsed_row, head_index) ⇒ String

Parameters:

  • parsed_row (Hash)

    a parsed row (the intermediate hash).

  • head_index (Integer)

    current item’s position in the Head column.

Returns:



9
10
11
# File 'lib/reading/parsing/attributes/author.rb', line 9

def transform_from_parsed(parsed_row, head_index)
  parsed_row[:head][head_index][:author]
end