Sha256: 680d07c576b6c66bef05c9d6736a44ee676f8d05ac6d80257ac53f703cae51c5
Contents?: true
Size: 522 Bytes
Versions: 3
Compression:
Stored size: 522 Bytes
Contents
# frozen_string_literal: true module AppleMusic class MusicVideo < Resource # https://developer.apple.com/documentation/applemusicapi/musicvideo/relationships class Relationships attr_reader :albums, :artists, :genres def initialize(props = {}) @albums = Relationship.new(props['albums']).data @artists = Relationship.new(props['artists']).data @genres = Relationship.new(props['genres']).data end end self.relationships_model = self::Relationships end end
Version data entries
3 entries across 3 versions & 1 rubygems