Sha256: 8acbd9cd5abb871276190b10c0a2a8385f7d2aa82740effccf3de1f50406ad32

Contents?: true

Size: 402 Bytes

Versions: 9

Compression:

Stored size: 402 Bytes

Contents

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

        value :guid do |guid|
          perma_link? ? Addressable::URI.parse(guid) : 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

9 entries across 9 versions & 1 rubygems

Version Path
feedjira-podcast-0.9.8 lib/feedjira/podcast/item/guid.rb
feedjira-podcast-0.9.7 lib/feedjira/podcast/item/guid.rb
feedjira-podcast-0.9.6 lib/feedjira/podcast/item/guid.rb
feedjira-podcast-0.9.5 lib/feedjira/podcast/item/guid.rb
feedjira-podcast-0.9.4 lib/feedjira/podcast/item/guid.rb
feedjira-podcast-0.9.3 lib/feedjira/podcast/item/guid.rb
feedjira-podcast-0.9.2 lib/feedjira/podcast/item/guid.rb
feedjira-podcast-0.9.1 lib/feedjira/podcast/item/guid.rb
feedjira-podcast-0.9.0 lib/feedjira/podcast/item/guid.rb