123456789_123456789_123456789_123456789_123456789_

Module: RSS::Maker::AtomCategory

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/rss/maker/atom.rb

Instance Method Summary

Instance Method Details

#required_variable_names (private)

[ GitHub ]

  
# File 'lib/rss/maker/atom.rb', line 98

def required_variable_names
  %w(term)
end

#to_feed(feed, current)

[ GitHub ]

  
# File 'lib/rss/maker/atom.rb', line 84

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

#variables (private)

[ GitHub ]

  
# File 'lib/rss/maker/atom.rb', line 102

def variables
  super + ["term", "scheme"]
end