Class: Spotted::Models::RecommendationGetResponse::Seed
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Spotted::Models::RecommendationGetResponse::Seed
- Defined in:
- lib/spotted/models/recommendation_get_response.rb
Instance Attribute Summary collapse
-
#after_filtering_size ⇒ Integer?
The number of tracks available after min_* and max_* filters have been applied.
-
#after_relinking_size ⇒ Integer?
The number of tracks available after relinking for regional availability.
-
#href ⇒ String?
A link to the full track or artist data for this seed.
-
#id ⇒ String?
The id used to select this seed.
-
#initial_pool_size ⇒ Integer?
The number of recommended tracks available for this seed.
-
#type ⇒ String?
The entity type of this seed.
Instance Method Summary collapse
-
#initialize(id: nil, after_filtering_size: nil, after_relinking_size: nil, href: nil, initial_pool_size: nil, type: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Seed for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id: nil, after_filtering_size: nil, after_relinking_size: nil, href: nil, initial_pool_size: nil, type: nil) ⇒ Object
Some parameter documentations has been truncated, see Spotted::Models::RecommendationGetResponse::Seed for more details.
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/spotted/models/recommendation_get_response.rb', line 27 class Seed < Spotted::Internal::Type::BaseModel # @!attribute id # The id used to select this seed. This will be the same as the string used in the # `seed_artists`, `seed_tracks` or `seed_genres` parameter. # # @return [String, nil] optional :id, String # @!attribute after_filtering_size # The number of tracks available after min\_\* and max\_\* filters have been # applied. # # @return [Integer, nil] optional :after_filtering_size, Integer, api_name: :afterFilteringSize # @!attribute after_relinking_size # The number of tracks available after relinking for regional availability. # # @return [Integer, nil] optional :after_relinking_size, Integer, api_name: :afterRelinkingSize # @!attribute href # A link to the full track or artist data for this seed. For tracks this will be a # link to a Track Object. For artists a link to an Artist Object. For genre seeds, # this value will be `null`. # # @return [String, nil] optional :href, String # @!attribute initial_pool_size # The number of recommended tracks available for this seed. # # @return [Integer, nil] optional :initial_pool_size, Integer, api_name: :initialPoolSize # @!attribute type # The entity type of this seed. One of `artist`, `track` or `genre`. # # @return [String, nil] optional :type, String # @!method initialize(id: nil, after_filtering_size: nil, after_relinking_size: nil, href: nil, initial_pool_size: nil, type: nil) # Some parameter documentations has been truncated, see # {Spotted::Models::RecommendationGetResponse::Seed} for more details. # # @param id [String] The id used to select this seed. This will be the same as the string used in the # # @param after_filtering_size [Integer] The number of tracks available after min\_\* and max\_\* filters have been appli # # @param after_relinking_size [Integer] The number of tracks available after relinking for regional availability. # # @param href [String] A link to the full track or artist data for this seed. For tracks this will be a # # @param initial_pool_size [Integer] The number of recommended tracks available for this seed. # # @param type [String] The entity type of this seed. One of `artist`, `track` or `genre`. end |
Instance Attribute Details
#after_filtering_size ⇒ Integer?
The number of tracks available after min_* and max_* filters have been applied.
40 |
# File 'lib/spotted/models/recommendation_get_response.rb', line 40 optional :after_filtering_size, Integer, api_name: :afterFilteringSize |
#after_relinking_size ⇒ Integer?
The number of tracks available after relinking for regional availability.
46 |
# File 'lib/spotted/models/recommendation_get_response.rb', line 46 optional :after_relinking_size, Integer, api_name: :afterRelinkingSize |
#href ⇒ String?
A link to the full track or artist data for this seed. For tracks this will be a link to a Track Object. For artists a link to an Artist Object. For genre seeds, this value will be ‘null`.
54 |
# File 'lib/spotted/models/recommendation_get_response.rb', line 54 optional :href, String |
#id ⇒ String?
The id used to select this seed. This will be the same as the string used in the ‘seed_artists`, `seed_tracks` or `seed_genres` parameter.
33 |
# File 'lib/spotted/models/recommendation_get_response.rb', line 33 optional :id, String |
#initial_pool_size ⇒ Integer?
The number of recommended tracks available for this seed.
60 |
# File 'lib/spotted/models/recommendation_get_response.rb', line 60 optional :initial_pool_size, Integer, api_name: :initialPoolSize |
#type ⇒ String?
The entity type of this seed. One of ‘artist`, `track` or `genre`.
66 |
# File 'lib/spotted/models/recommendation_get_response.rb', line 66 optional :type, String |