Class: DJjour::Client

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/djjour/client.rb

Instance Method Summary collapse

Instance Method Details

#aac?(t) ⇒ Boolean

Returns:

  • (Boolean)


10
# File 'lib/djjour/client.rb', line 10

def aac?(t); t['Kind'] =~ /AAC audio file/ end

#mpeg?(t) ⇒ Boolean

Returns:

  • (Boolean)


9
# File 'lib/djjour/client.rb', line 9

def mpeg?(t); t['Kind'] == "MPEG audio file" end