Class: RSS::Maker::OPDS::LinkBase::Prices::Price

Inherits:
Base
  • Object
show all
Defined in:
lib/rss/maker/opds.rb

Instance Method Summary collapse

Instance Method Details

#to_feed(feed, current) ⇒ Object



37
38
39
40
41
42
43
44
# File 'lib/rss/maker/opds.rb', line 37

def to_feed(feed, current)
  price = ::RSS::OPDS::Price.new
  price.value = value
  price.currencycode = currencycode
  current.opds_prices << price
  set_parent price, current
  setup_other_elements(feed)
end