class FeedzirraPodcast::Parser::Podcast

Public Instance Methods

itunes_block() click to toggle source
# File lib/feedzirra-podcast/parser/podcast.rb, line 60
def itunes_block
  case itunes_block_string
  when "yes"
    true
  else
    false
  end
end
itunes_complete() click to toggle source
# File lib/feedzirra-podcast/parser/podcast.rb, line 69
def itunes_complete
  case itunes_complete_string
  when "yes"
    true
  else
    false
  end
end
itunes_explicit() click to toggle source
# File lib/feedzirra-podcast/parser/podcast.rb, line 45
def itunes_explicit
  case itunes_explicit_string
  when "yes"
    true
  when "clean"
    :clean
  else
    false
  end
end
itunes_image() click to toggle source
# File lib/feedzirra-podcast/parser/podcast.rb, line 41
def itunes_image
  Struct.new(:href).new(itunes_image_href)
end
itunes_keywords() click to toggle source
# File lib/feedzirra-podcast/parser/podcast.rb, line 56
def itunes_keywords
  itunes_keywords_string.split(',').map(&:strip) if itunes_keywords_string.present?
end
itunes_owner() click to toggle source
# File lib/feedzirra-podcast/parser/podcast.rb, line 35
def itunes_owner
  _email = itunes_owner_object ? itunes_owner_object.email : nil
  _name = itunes_owner_object ? itunes_owner_object.name : nil
  Struct.new(:email, :name).new(_email, _name)
end
sy_updateBase()
Alias for: sy_update_base
sy_updateFrequency()
Alias for: sy_update_frequency
sy_updatePeriod()
Alias for: sy_update_period
sy_update_base() click to toggle source
# File lib/feedzirra-podcast/parser/podcast.rb, line 95
def sy_update_base
  Time.parse(sy_update_base_string) if sy_update_base_string.present?
end
Also aliased as: sy_updateBase
sy_update_frequency() click to toggle source
# File lib/feedzirra-podcast/parser/podcast.rb, line 90
def sy_update_frequency
  sy_update_frequency_string.to_i if sy_update_frequency_string
end
Also aliased as: sy_updateFrequency
sy_update_period() click to toggle source
# File lib/feedzirra-podcast/parser/podcast.rb, line 78
def sy_update_period
  case sy_update_period_string
    when "hourly" then :hourly
    when "daily" then :daily
    when "weekly" then :weekly
    when "monthly" then :monthly
    when "yearly" then :yearly
    else nil
  end
end
Also aliased as: sy_updatePeriod