Sha256: 7ed1845d3185882263ce40c50d4e4d2d8da66e24d36ecd7c2b631e26a7531415

Contents?: true

Size: 399 Bytes

Versions: 5

Compression:

Stored size: 399 Bytes

Contents

module Feedjira
  module Podcast
    module Item
      class GUID
        include SAXMachine
        include FeedUtilities

        value :guid do |guid|
          perma_link? ? Addressable::URI.parse(guid.strip) : guid
        end

        attribute :isPermaLink, as: :is_perma_link

        def perma_link?
          is_perma_link == "false" ? false : true
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
feedjira-podcast-0.10.0 lib/feedjira/podcast/item/guid.rb
feedjira-podcast-0.9.14 lib/feedjira/podcast/item/guid.rb
feedjira-podcast-0.9.13 lib/feedjira/podcast/item/guid.rb
feedjira-podcast-0.9.12 lib/feedjira/podcast/item/guid.rb
feedjira-podcast-0.9.11 lib/feedjira/podcast/item/guid.rb