Class: YmlBuilder::OfferSimple
- Inherits:
-
CommonOffer
- Object
- CommonOffer
- YmlBuilder::OfferSimple
- Defined in:
- lib/yml_builder/offer_simple.rb
Instance Attribute Summary
Attributes inherited from CommonOffer
#available, #bid, #id, #mandatories, #type
Instance Method Summary collapse
-
#initialize ⇒ OfferSimple
constructor
A new instance of OfferSimple.
Methods inherited from CommonOffer
#add_cover_picture, #add_param, #add_picture, #to_yml
Constructor Details
#initialize ⇒ OfferSimple
Returns a new instance of OfferSimple.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/yml_builder/offer_simple.rb', line 4 def initialize super @type = 'simple' @params = Hash.new @params[:url] = nil @params[:price] = nil @params[:oldprice] = nil @params[:currency_id] = nil @params[:category_id] = nil @params[:market_category] = nil @params[:picture] = nil @params[:store] = nil @params[:pickup] = nil @params[:delivery] = nil @params[:local_delivery_cost] = nil @params[:name] = nil @params[:vendor] = nil @params[:vendor_code] = nil @params[:description] = nil @params[:country_of_origin] = nil @params[:adult] = nil @params[:param] = nil @params[:weight] = nil @params[:dimensions] = nil @mandatories = [:url, :price, :currency_id, :category_id, :delivery, :name] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class YmlBuilder::CommonOffer