module Napster::Moniker

Module for checking Napster API id monikers

Constants

MONIKER_REGEXES

Public Class Methods

check(id, type) click to toggle source

Given id and type, check if the id is of the type @param id [String] @param type [Symbol] @return [MatchData]

# File lib/napster/moniker.rb, line 25
def self.check(id, type)
  MONIKER_REGEXES[type].match(id)
end