Module: RSS::Maker::AtomCategory

Instance Method Summary collapse

Instance Method Details

#to_feed(feed, current) ⇒ Object



85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/rss/maker/atom.rb', line 85

def to_feed(feed, current)
  category = feed.class::Category.new
  set = setup_values(category)
  if set
    current.categories << category
    set_parent(category, current)
    setup_other_elements(feed)
  else
    raise NotSetError.new(self.class.not_set_name,
                          not_set_required_variables)
  end
end