Class: RSpotify::RecommendationSeed

Inherits:
Base
  • Object
show all
Defined in:
lib/rspotify/recommendation_seed.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#external_urls, #href, #id, #type, #uri

Instance Method Summary collapse

Methods inherited from Base

#complete!, #embed, find, #method_missing, #respond_to?, search

Constructor Details

#initialize(options = {}) ⇒ RecommendationSeed

Returns a new instance of RecommendationSeed.


8
9
10
11
12
13
14
# File 'lib/rspotify/recommendation_seed.rb', line 8

def initialize(options = {})
  @after_filtering_size = options['afterFilteringSize']
  @after_relinking_size = options['afterRelinkingSize']
  @initial_pool_size    = options['initialPoolSize']

  super(options)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RSpotify::Base

Instance Attribute Details

#after_filtering_sizeInteger

The number of tracks available after min_* and max_* filters have been applied.

Returns:

  • (Integer)

    the current value of after_filtering_size


6
7
8
# File 'lib/rspotify/recommendation_seed.rb', line 6

def after_filtering_size
  @after_filtering_size
end

#after_relinking_sizeInteger

The number of tracks available after relinking for regional availability.

Returns:

  • (Integer)

    the current value of after_relinking_size


6
7
8
# File 'lib/rspotify/recommendation_seed.rb', line 6

def after_relinking_size
  @after_relinking_size
end

#initial_pool_sizeInteger

The number of recommended tracks available for this seed.

Returns:

  • (Integer)

    the current value of initial_pool_size


6
7
8
# File 'lib/rspotify/recommendation_seed.rb', line 6

def initial_pool_size
  @initial_pool_size
end