Class: YmlBuilder::OfferVendorModel
- Inherits:
-
CommonOffer
- Object
- CommonOffer
- YmlBuilder::OfferVendorModel
- Defined in:
- lib/yml_builder/offer_vendor_model.rb
Instance Attribute Summary
Attributes inherited from CommonOffer
#available, #bid, #id, #mandatories, #type
Instance Method Summary collapse
-
#initialize ⇒ OfferVendorModel
constructor
A new instance of OfferVendorModel.
Methods inherited from CommonOffer
#add_cover_picture, #add_param, #add_picture, #to_yml
Constructor Details
#initialize ⇒ OfferVendorModel
Returns a new instance of OfferVendorModel.
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 |
# File 'lib/yml_builder/offer_vendor_model.rb', line 4 def initialize super @type = 'vendor.model' @params[:m] = Hash.new @params[:m][:url] = nil @params[:m][:price] = nil @params[:m][:currency_id] = nil @params[:m][:category_id] = nil @params[:m][:delivery] = nil @params[:m][:vendor] = nil @params[:m][:model] = nil @params[:o] = Hash.new @params[:o][:local_delivery_cost] = nil @params[:o][:type_prefix] = nil @params[:o][:vendor_code] = nil @params[:o][:description] = nil @params[:o][:manufacturer_warranty] = nil @params[:o][:country_of_origin] = nil @params[:o][:available] = nil @params[:o][:sales_notes] = nil @params[:o][:downloadable] = nil @params[:o][:adult] = nil end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class YmlBuilder::CommonOffer