Sha256: 8b4446d1f35b94a8c16c23ee8ab048a4b7a12a0e75d67c07e2edfdd0de7b16f1

Contents?: true

Size: 442 Bytes

Versions: 1

Compression:

Stored size: 442 Bytes

Contents

module Feedjira
  module Podcast
    module Item
      module Content
        module InstanceMethods
          def content
            @content ||= Struct.new(:encoded).new(content_encoded)
          end
        end

        def self.included(base)
          base.include(InstanceMethods)

          content_xml_ns = "content"

          base.element :"#{content_xml_ns}:encoded", as: :content_encoded
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
feedjira-podcast-0.10.0 lib/feedjira/podcast/item/content.rb