Module: Shazamio::Device

Defined in:
lib/shazamio/request.rb

Overview

Mirrors the Python Device enum: a client platform Shazam is spoofed as.

Constant Summary collapse

IPHONE =
"iphone"
ANDROID =
"android"
WEB =
"web"
ALL =
[IPHONE, ANDROID, WEB].freeze

Class Method Summary collapse

Class Method Details

.randomObject



13
14
15
# File 'lib/shazamio/request.rb', line 13

def self.random
  ALL.sample
end