module VkMusic::Utility::DataTypeGuesser
Guess type of method to use based on string data
Constants
- ARTIST_POSTFIX
Artist URL postfix
- AUDIOS_POSTFIX
End of profile audios URL
- PLAYLIST_POSTFIX
End of playlist URL
- POST_POSTFIX
End of post URL
- PROFILE_URL
Full profile URL regex
- WALL_POSTFIX
End of wall URL
Public Class Methods
call(data)
click to toggle source
@param data [String] @return [Symbol]
# File lib/vk_music/utility/data_type_guesser.rb, line 37 def self.call(data) case data when PLAYLIST_POSTFIX then :playlist when ARTIST_POSTFIX then :artist when POST_POSTFIX then :post when WALL_POSTFIX then :wall when AUDIOS_POSTFIX, PROFILE_URL then :audios else :find end end