Class: GW2::API::Commerce

Inherits:
Object
  • Object
show all
Defined in:
lib/gw2/api/commerce.rb

Class Method Summary collapse

Class Method Details

.coins_to_gems(qty = 0) ⇒ Object



7
8
9
# File 'lib/gw2/api/commerce.rb', line 7

def self.coins_to_gems qty=0
  #TODO: Implement
end

.current_buys(key) ⇒ Object



40
41
42
# File 'lib/gw2/api/commerce.rb', line 40

def self.current_buys key
  #TODO: Implement
end

.current_sells(key) ⇒ Object



44
45
46
# File 'lib/gw2/api/commerce.rb', line 44

def self.current_sells key
  #TODO: Implement
end

.gems_to_coins(qty = 0) ⇒ Object



11
12
13
# File 'lib/gw2/api/commerce.rb', line 11

def self.gems_to_coins qty=0
  #TODO: Implement
end

.listings_allObject



15
16
17
18
19
# File 'lib/gw2/api/commerce.rb', line 15

def self.listings_all
  params = {}
  params[:endpoint] = "/v2/commerce/listings"
  return call_api params
end

.listings_where(ids = []) ⇒ Object



21
22
23
24
25
26
# File 'lib/gw2/api/commerce.rb', line 21

def self.listings_where ids=[]
  params = {}
  params[:ids] = ids
  params[:endpoint] = '/v2/commerce/listings'
  return call_api params
end

.past_buys(key) ⇒ Object



48
49
50
# File 'lib/gw2/api/commerce.rb', line 48

def self.past_buys key
  #TODO: Implement
end

.past_sells(key) ⇒ Object



52
53
54
# File 'lib/gw2/api/commerce.rb', line 52

def self.past_sells key
  #TODO: Implement
end

.prices_allObject



28
29
30
31
32
# File 'lib/gw2/api/commerce.rb', line 28

def self.prices_all
  params = {}
  params[:endpoint] = '/v2/commerce/prices'
  return call_api params
end

.prices_where(ids = []) ⇒ Object



34
35
36
37
38
# File 'lib/gw2/api/commerce.rb', line 34

def self.prices_where ids=[]
  params = {}
  params[:ids] = ids
  params[:endpoint] = '/v2/commerce/prices'
end