Class: Spotted::Models::CopyrightObject

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/spotted/models/copyright_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(published: nil, text: nil, type: nil) ⇒ Object

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

Parameters:

  • published (Boolean) (defaults to: nil)

    The playlist’s public/private status (if it should be added to the user’s profil

  • text (String) (defaults to: nil)

    The copyright text for this content.

  • type (String) (defaults to: nil)

    The type of copyright: ‘C` = the copyright, `P` = the sound recording (performan



# File 'lib/spotted/models/copyright_object.rb', line 29

Instance Attribute Details

#publishedBoolean?

The playlist’s public/private status (if it should be added to the user’s profile or not): ‘true` the playlist will be public, `false` the playlist will be private, `null` the playlist status is not relevant. For more about public/private status, see [Working with Playlists](/documentation/web-api/concepts/playlists)

Returns:

  • (Boolean, nil)


14
# File 'lib/spotted/models/copyright_object.rb', line 14

optional :published, Spotted::Internal::Type::Boolean

#textString?

The copyright text for this content.

Returns:

  • (String, nil)


20
# File 'lib/spotted/models/copyright_object.rb', line 20

optional :text, String

#typeString?

The type of copyright: ‘C` = the copyright, `P` = the sound recording (performance) copyright.

Returns:

  • (String, nil)


27
# File 'lib/spotted/models/copyright_object.rb', line 27

optional :type, String