Class: RSS::Maker::RSS10::Items::Item
Relationships & Source Files | |
Namespace Children | |
Classes:
| |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
ItemBase
|
|
Instance Chain:
self,
ItemBase
|
|
Inherits: |
ItemBase
|
Defined in: | lib/rss/maker/1.0.rb |
Instance Method Summary
- #to_feed(rss)
- #not_set_required_variables private
- #required_variable_names private
- #variables private
Instance Method Details
#not_set_required_variables (private)
[ GitHub ]# File 'lib/rss/maker/1.0.rb', line 257
def not_set_required_variables set_default_values do vars = super vars << "title" unless title {|t| t.have_required_values?} vars end end
#required_variable_names (private)
[ GitHub ]# File 'lib/rss/maker/1.0.rb', line 249
def required_variable_names %w(link) end
#to_feed(rss)
[ GitHub ]# File 'lib/rss/maker/1.0.rb', line 233
def to_feed(rss) set_default_values do item = RDF::Item.new(link) set = setup_values(item) if set item.dc_dates.clear rss.items << item set_parent(item, rss) setup_other_elements(rss, item) elsif !have_required_values? raise NotSetError.new("maker.item", not_set_required_variables) end end end
#variables (private)
[ GitHub ]# File 'lib/rss/maker/1.0.rb', line 253
def variables super + %w(link) end