Class: Top4R::TaobaokeShop
- Inherits:
-
Object
- Object
- Top4R::TaobaokeShop
- Includes:
- ModelMixin
- Defined in:
- lib/top4r/model/taobaokeitem.rb
Overview
TaobaokeShop Model
Constant Summary collapse
- @@ATTRIBUTES =
[:user_id, :shop_title, :click_url, :commission_rate, :seller_credit, :shop_type, :total_auction, :auction_count]
Class Method Summary collapse
Instance Method Summary collapse
Methods included from ModelMixin
Class Method Details
.attributes ⇒ Object
11 |
# File 'lib/top4r/model/taobaokeitem.rb', line 11 def attributes; @@ATTRIBUTES; end |
.default_public_fields ⇒ Object
13 14 15 |
# File 'lib/top4r/model/taobaokeitem.rb', line 13 def default_public_fields ["user_id", "shop_title", "click_url", "commission_rate"] end |
Instance Method Details
#unmarshal_other_attrs ⇒ Object
18 19 20 21 22 |
# File 'lib/top4r/model/taobaokeitem.rb', line 18 def unmarshal_other_attrs @id = @user_id self end |