Class: Top4R::TaobaokeShop

Inherits:
Object
  • Object
show all
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

included

Class Method Details

.attributesObject



11
# File 'lib/top4r/model/taobaokeitem.rb', line 11

def attributes; @@ATTRIBUTES; end

.default_public_fieldsObject



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_attrsObject



18
19
20
21
22
# File 'lib/top4r/model/taobaokeitem.rb', line 18

def unmarshal_other_attrs
  @id = @user_id
  
  self
end