Class: Feedjira::Parser::PodloveChapter

Inherits:
Object
  • Object
show all
Includes:
FeedEntryUtilities, SAXMachine
Defined in:
lib/feedjira/parser/podlove_chapter.rb

Constant Summary

Constants included from DateTimeUtilities

DateTimeUtilities::DATE_PARSERS

Instance Method Summary collapse

Methods included from FeedEntryUtilities

#[], #[]=, #each, #id, #parse_datetime, #published, #published=, #sanitize!, #updated=

Methods included from DateTimeUtilities

#parse_datetime

Instance Method Details

#startObject


13
14
15
16
17
18
19
20
# File 'lib/feedjira/parser/podlove_chapter.rb', line 13

def start
  return unless start_ntp

  parts = start_ntp.split(":")
  parts.reverse.to_enum.with_index.map do |part, index|
    part.to_f * (60**index)
  end.reduce(:+)
end