123456789_123456789_123456789_123456789_123456789_

Class: RSS::Maker::RSS10::Channel::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/1.0.rb

Instance Method Summary

Instance Method Details

#required_variable_names (private)

[ GitHub ]

  
# File 'lib/rss/maker/1.0.rb', line 139

def required_variable_names
  %w(href)
end

#to_feed(rss, channel)

[ GitHub ]

  
# File 'lib/rss/maker/1.0.rb', line 129

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