Class: Reading::Row::AuthorAttribute

Inherits:
Attribute show all
Defined in:
lib/reading/attribute/all_attributes.rb

Instance Method Summary collapse

Methods inherited from Attribute

#initialize

Constructor Details

This class inherits a constructor from Reading::Row::Attribute

Instance Method Details

#parseObject



27
28
29
30
31
32
33
# File 'lib/reading/attribute/all_attributes.rb', line 27

def parse
  item_head
    .remove(/\A#{config.deep_fetch(:csv, :regex, :formats)}/)
    .match(/.+(?=#{config.deep_fetch(:csv, :short_separator)})/)
    &.to_s
    &.strip
end