Module: WeChat::Sku
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- CHILDREN =
{sku_definition_item: nil}.freeze
Instance Method Summary collapse
Methods included from Entity::Base
#delete_from_we_chat, #get_we_chat_id_from_data, #reset_we_chat_id, #set_we_chat_id, #submit_to_we_chat, #submitted_to_we_chat?, #update_to_we_chat
Instance Method Details
#to_we_chat_data ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/we_chat/sku.rb', line 10 def to_we_chat_data we_chat_data = {} we_chat_data[:sku_id] = self.we_chat_id we_chat_data[:price] = self.price we_chat_data[:quantity] = self.quantity we_chat_data[:icon_url] = self.icon_url we_chat_data[:product_code] = self.product_code we_chat_data[:ori_price] = self.original_price we_chat_data end |