Class: Spotted::Models::TrackRestrictionObject

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/spotted/models/track_restriction_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(reason: nil) ⇒ Object

Some parameter documentations has been truncated, see Spotted::Models::TrackRestrictionObject for more details.

Parameters:

  • reason (String) (defaults to: nil)

    The reason for the restriction. Supported values:



# File 'lib/spotted/models/track_restriction_object.rb', line 21

Instance Attribute Details

#reasonString?

The reason for the restriction. Supported values:

  • ‘market` - The content item is not available in the given market.

  • ‘product` - The content item is not available for the user’s subscription type.

  • ‘explicit` - The content item is explicit and the user’s account is set to not play explicit content.

Additional reasons may be added in the future. Note: If you use this field, make sure that your application safely handles unknown values.

Returns:

  • (String, nil)


19
# File 'lib/spotted/models/track_restriction_object.rb', line 19

optional :reason, String