Module: Top4R::LoggedInUserMixin::InstanceMethods

Defined in:
lib/top4r/model/user.rb

Instance Method Summary collapse

Instance Method Details

#cats(options = {}) ⇒ Object



17
18
19
# File 'lib/top4r/model/user.rb', line 17

def cats(options = {})
  @client.seller_cats(self.nick, :cats_list, options)
end

#search_items(q = nil, options = {}) ⇒ Object



13
14
15
# File 'lib/top4r/model/user.rb', line 13

def search_items(q = nil, options = {})
  @client.items_onsale(q, :onsale_list, options)
end

#shop(options = {}) ⇒ Object



21
22
23
# File 'lib/top4r/model/user.rb', line 21

def shop(options = {})
  @client.shop(self.nick, :shop_info, options)
end

#suites(service_code, options = {}) ⇒ Object



9
10
11
# File 'lib/top4r/model/user.rb', line 9

def suites(service_code, options = {})
  @client.suites(self.nick, service_code, :list, options)
end

#trades(method = :bought_list, options = {}) ⇒ Object



5
6
7
# File 'lib/top4r/model/user.rb', line 5

def trades(method = :bought_list, options = {})
  @client.trades_for(method, options)
end