Module: RSS::Maker::OPDS::LinkBase
- Included in:
- Atom::Feed::Items::Item::Links::Link
- Defined in:
- lib/rss/maker/opds.rb
Defined Under Namespace
Classes: Prices
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/rss/maker/opds.rb', line 9 def included(base) super base.class_eval(<<-EOC, __FILE__, __LINE__ + 1) %w[facetGroup activeFacet].each do |attr| def_other_element attr end def_classed_elements 'opds_price', 'value', 'Prices' # @note Defined to prevent NoMethodError def setup_opds_prices(feed, current) end def to_feed(feed, current) super # AtomLink#to_feed opds_prices.to_feed(feed, current.links.last) end EOC end |