Class: Spotted::Models::UserRetrieveProfileResponse

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

Overview

Defined Under Namespace

Modules: Type

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(id: nil, display_name: nil, external_urls: nil, followers: nil, href: nil, images: nil, type: nil, uri: nil) ⇒ Object

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

Parameters:

  • id (String) (defaults to: nil)

    The [Spotify user ID](/documentation/web-api/concepts/spotify-uris-ids) for this

  • display_name (String, nil) (defaults to: nil)

    The name displayed on the user’s profile. ‘null` if not available.

  • external_urls (Spotted::Models::ExternalURLObject) (defaults to: nil)

    Known public external URLs for this user.

  • followers (Spotted::Models::FollowersObject) (defaults to: nil)

    Information about the followers of this user.

  • href (String) (defaults to: nil)

    A link to the Web API endpoint for this user.

  • images (Array<Spotted::Models::ImageObject>) (defaults to: nil)

    The user’s profile image.

  • type (Symbol, Spotted::Models::UserRetrieveProfileResponse::Type) (defaults to: nil)

    The object type.

  • uri (String) (defaults to: nil)

    The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for this use



# File 'lib/spotted/models/user_retrieve_profile_response.rb', line 57

Instance Attribute Details

#display_nameString?

The name displayed on the user’s profile. ‘null` if not available.

Returns:

  • (String, nil)


18
# File 'lib/spotted/models/user_retrieve_profile_response.rb', line 18

optional :display_name, String, nil?: true

#external_urlsSpotted::Models::ExternalURLObject?

Known public external URLs for this user.



24
# File 'lib/spotted/models/user_retrieve_profile_response.rb', line 24

optional :external_urls, -> { Spotted::ExternalURLObject }

#followersSpotted::Models::FollowersObject?

Information about the followers of this user.



30
# File 'lib/spotted/models/user_retrieve_profile_response.rb', line 30

optional :followers, -> { Spotted::FollowersObject }

#hrefString?

A link to the Web API endpoint for this user.

Returns:

  • (String, nil)


36
# File 'lib/spotted/models/user_retrieve_profile_response.rb', line 36

optional :href, String

#idString?

The [Spotify user ID](/documentation/web-api/concepts/spotify-uris-ids) for this user.

Returns:

  • (String, nil)


12
# File 'lib/spotted/models/user_retrieve_profile_response.rb', line 12

optional :id, String

#imagesArray<Spotted::Models::ImageObject>?

The user’s profile image.

Returns:



42
# File 'lib/spotted/models/user_retrieve_profile_response.rb', line 42

optional :images, -> { Spotted::Internal::Type::ArrayOf[Spotted::ImageObject] }

#typeSymbol, ...

The object type.



48
# File 'lib/spotted/models/user_retrieve_profile_response.rb', line 48

optional :type, enum: -> { Spotted::Models::UserRetrieveProfileResponse::Type }

#uriString?

The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for this user.

Returns:

  • (String, nil)


55
# File 'lib/spotted/models/user_retrieve_profile_response.rb', line 55

optional :uri, String