Home » Ruby-3.0.7 » rss » Index (L) » RSS » Maker » RSS09 » Items » Item » Links » Link ▲
123456789_123456789_123456789_123456789_123456789_

Class: RSS::Maker::RSS09::Items::Item::Links::Link

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, LinkBase
Instance Chain:
self, LinkBase
Inherits: LinkBase
  • Object
Defined in: lib/rss/maker/0.9.rb

Instance Method Summary

Instance Method Details

#required_variable_names (private)

[ GitHub ]

  
# File 'lib/rss/maker/0.9.rb', line 396

def required_variable_names
  %w(href)
end

#to_feed(rss, item)

[ GitHub ]

  
# File 'lib/rss/maker/0.9.rb', line 386

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