Class: Feedjira::Parser::PodloveChapter

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

Instance Method Summary collapse

Methods included from FeedEntryUtilities

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

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.sum do |part, index|
    part.to_f * (60**index)
  end
end