class Pohoda::Parsers::Acp::ActionPriceStockType
Public Instance Methods
discount_percentage()
click to toggle source
# File lib/pohoda/parsers/acp/action_price_stock_type.rb, line 15 def discount_percentage at 'acp:discountPercentage' end
discount_percentage_attributes()
click to toggle source
# File lib/pohoda/parsers/acp/action_price_stock_type.rb, line 19 def discount_percentage_attributes attributes_at 'acp:discountPercentage' end
fixed_price()
click to toggle source
# File lib/pohoda/parsers/acp/action_price_stock_type.rb, line 23 def fixed_price at 'acp:fixedPrice' end
fixed_price_attributes()
click to toggle source
# File lib/pohoda/parsers/acp/action_price_stock_type.rb, line 27 def fixed_price_attributes attributes_at 'acp:fixedPrice' end
price()
click to toggle source
# File lib/pohoda/parsers/acp/action_price_stock_type.rb, line 7 def price at 'acp:price' end
price_attributes()
click to toggle source
# File lib/pohoda/parsers/acp/action_price_stock_type.rb, line 11 def price_attributes attributes_at 'acp:price' end
to_h()
click to toggle source
# File lib/pohoda/parsers/acp/action_price_stock_type.rb, line 31 def to_h hash = {} hash[:attributes] = attributes hash[:price] = price if has? 'acp:price' hash[:price_attributes] = price_attributes if has? 'acp:price' hash[:discount_percentage] = discount_percentage if has? 'acp:discountPercentage' hash[:discount_percentage_attributes] = discount_percentage_attributes if has? 'acp:discountPercentage' hash[:fixed_price] = fixed_price if has? 'acp:fixedPrice' hash[:fixed_price_attributes] = fixed_price_attributes if has? 'acp:fixedPrice' hash end