lib/saucelabs/parsed_values.rb
def extract_device(value)
      device = value.to_s.split('|')[2] if value.to_s.include? '|'
      sauce_devices
      @sauce_devices[device] if not device.nil?
    end
def extract_device(value)
      device = value.to_s.split('|')[2] if value.to_s.include? '|'
      sauce_devices
      @sauce_devices[device] if not device.nil?
    end
def extract_device ( value ) device = value . to_s . split ( '|' ) [ 2 ] if value . to_s . include? '|' sauce_devices @sauce_devices [ device ] if not device . nil? end
Extracts device from browser string

 @example
   extract_device(:'safari5|linux|iphone') will extract
 browser = safari

 @param  [String] the browser string passed into the method
 @return [String] the device value
Extracts device from browser string