Class: Spotted::Models::EpisodeRestrictionObject
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Spotted::Models::EpisodeRestrictionObject
- Defined in:
- lib/spotted/models/episode_restriction_object.rb
Instance Attribute Summary collapse
-
#reason ⇒ String?
The reason for the restriction.
Instance Method Summary collapse
-
#initialize(reason: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see EpisodeRestrictionObject 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(reason: nil) ⇒ Object
Some parameter documentations has been truncated, see Spotted::Models::EpisodeRestrictionObject for more details.
|
|
# File 'lib/spotted/models/episode_restriction_object.rb', line 21
|
Instance Attribute Details
#reason ⇒ String?
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.
19 |
# File 'lib/spotted/models/episode_restriction_object.rb', line 19 optional :reason, String |