Class: GW2::API::Commerce
- Inherits:
-
Object
- Object
- GW2::API::Commerce
- Defined in:
- lib/gw2/api/commerce.rb
Class Method Summary collapse
- .coins_to_gems(qty = 0) ⇒ Object
- .current_buys(key) ⇒ Object
- .current_sells(key) ⇒ Object
- .gems_to_coins(qty = 0) ⇒ Object
- .listings_all ⇒ Object
- .listings_where(ids = []) ⇒ Object
- .past_buys(key) ⇒ Object
- .past_sells(key) ⇒ Object
- .prices_all ⇒ Object
- .prices_where(ids = []) ⇒ Object
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_all ⇒ Object
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_all ⇒ Object
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 |