Class: Spotted::Resources::Markets
- Inherits:
-
Object
- Object
- Spotted::Resources::Markets
- Defined in:
- lib/spotted/resources/markets.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Markets
constructor
private
A new instance of Markets.
-
#list(request_options: {}) ⇒ Spotted::Models::MarketListResponse
Get the list of markets where Spotify is available.
Constructor Details
#initialize(client:) ⇒ Markets
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Markets.
27 28 29 |
# File 'lib/spotted/resources/markets.rb', line 27 def initialize(client:) @client = client end |
Instance Method Details
#list(request_options: {}) ⇒ Spotted::Models::MarketListResponse
Get the list of markets where Spotify is available.
15 16 17 18 19 20 21 22 |
# File 'lib/spotted/resources/markets.rb', line 15 def list(params = {}) @client.request( method: :get, path: "markets", model: Spotted::Models::MarketListResponse, options: params[:request_options] ) end |