class Spotify::Music::Importer::CollectionMatch
Public Class Methods
new(collection_record, spotify_match)
click to toggle source
# File lib/spotify/music/importer/collection_match.rb, line 5 def initialize(collection_record, spotify_match) @collection_record = collection_record @spotify_match = spotify_match end
Public Instance Methods
album_match()
click to toggle source
# File lib/spotify/music/importer/collection_match.rb, line 18 def album_match @collection_record.album == @spotify_match.album end
full_match()
click to toggle source
# File lib/spotify/music/importer/collection_match.rb, line 10 def full_match name_match && album_match end
name_match()
click to toggle source
# File lib/spotify/music/importer/collection_match.rb, line 14 def name_match @collection_record.name == @spotify_match.name end