Sha256: c30f8641ca800b397d8f92ffa5ca2600c84a56246fe08310132bac8ecb761e47

Contents?: true

Size: 280 Bytes

Versions: 10

Compression:

Stored size: 280 Bytes

Contents

# frozen_string_literal: true

module Browser
  class Snapchat < Base
    def id
      :snapchat
    end

    def name
      "Snapchat"
    end

    def full_version
      ua[%r{Snapchat( ?|/)([\d.]+)}, 2] || "0.0"
    end

    def match?
      ua =~ /Snapchat/
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
browser-5.1.0 lib/browser/snapchat.rb
browser-5.0.0 lib/browser/snapchat.rb
browser-4.2.0 lib/browser/snapchat.rb
browser-4.1.0 lib/browser/snapchat.rb
browser-4.0.0 lib/browser/snapchat.rb
browser-3.0.3 lib/browser/snapchat.rb
browser-3.0.2 lib/browser/snapchat.rb
browser-3.0.1 lib/browser/snapchat.rb
browser-3.0.0 lib/browser/snapchat.rb
browser-2.7.1 lib/browser/snapchat.rb