class Pohoda::Parsers::Ofr::OfferDetailType
Public Instance Methods
offer_item()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_detail_type.rb, line 7 def offer_item array_of_at(Ofr::OfferItemType, ['ofr:offerItem']) end
to_h()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_detail_type.rb, line 11 def to_h hash = {} hash[:attributes] = attributes hash[:offer_item] = offer_item.map(&:to_h) if has? 'ofr:offerItem' hash end