Sha256: ca80a2e72d16b9f7d3723572139a2680536e9bd5c6e5407edecedef2fde591bb
Contents?: true
Size: 821 Bytes
Versions: 2
Compression:
Stored size: 821 Bytes
Contents
module Shoppr class Offer include ROXML xml_convention {|val| val.camelize(:lower) } xml_reader :id, :from => '@id' xml_reader :name xml_reader :description xml_reader :manufacturer xml_reader :images, :as => [Image], :in => 'imageList' xml_reader :stock_status xml_reader :store_notes xml_reader :base_price, :as => Float xml_reader :tax, :as => Float xml_reader :shipping_cost, :as => Float xml_reader :total_price, :as => Float xml_reader :offer_url, :from => 'offerURL' xml_reader :store, :as => Store xml_reader :cpc, :as => Float xml_reader :category_id, :as => Integer xml_reader :product_id, :as => Integer xml_reader :featured?, :from => :attr xml_reader :used?, :from => :attr xml_reader :smart_buy?, :from => :attr end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shoppr-0.1.1 | lib/shoppr/offer.rb |
shoppr-0.1.0 | lib/shoppr/offer.rb |