class RSS::Maker::RSS09::Channel::Items::Item::Links

Public Instance Methods

to_feed(rss, item) click to toggle source
# File lib/rss/maker/0.9.rb, line 380
  def to_feed(rss, item)
    return if @links.empty?
    @links.first.to_feed(rss, item)
  end

  class Link < LinkBase
    def to_feed(rss, item)
      if have_required_values?
        item.link = href
      else
        raise NotSetError.new("maker.link",
                              not_set_required_variables)
      end
    end

    private
    def required_variable_names
      %w(href)
    end
  end
end