Class: RBGlitch::AuctionsAPI
Instance Method Summary
collapse
Methods inherited from BaseAPI
#initialize
Instance Method Details
#create(stack_tsid, count, cost) ⇒ Object
23
24
25
26
27
28
29
30
31
|
# File 'lib/rbglitch/auctions_api.rb', line 23
def create(stack_tsid, count, cost)
params = {
'stack_tsid' => stack_tsid,
'count' => count,
'cost' => cost,
'oauth_token' => @player_token
}
send('create', params)
end
|
#list(category = '', defs = 0, page = 1, per_page = 10) ⇒ Object
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/rbglitch/auctions_api.rb', line 9
def list(category='', defs=0, page=1, per_page=10)
params = {
'defs' => defs,
'page' => page,
'per_page' => per_page
}
unless category == ''
params['category'] = category
end
send('list', params)
end
|