Sha256: a752d2df5dea7e52bb1d39ca3f01761b71775c55e39b8279bfa1af66455d2484

Contents?: true

Size: 522 Bytes

Versions: 4

Compression:

Stored size: 522 Bytes

Contents

module Aua::OperatingSystems::Android

  def self.extend?(agent)
    agent.platform_string == "Linux" && agent.comments.first && agent.comments.first[2] && agent.comments.first[2].match(PATTERN)
  end

  PATTERN = /^Android\s([\d\.]+)$/

  def platform
    @platform ||= :Android
  end

  def os_name
    @os_name ||= :Android
  end

  def os_version
    @os_version ||= comments.first[2] =~ PATTERN && $1
  end

  def name
    @name ||= :AndroidWebkit
  end

  def version
    @version ||= version_of("Version")
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aua-0.2.6 lib/aua/operating_systems/android.rb
aua-0.2.5 lib/aua/operating_systems/android.rb
aua-0.2.4 lib/aua/operating_systems/android.rb
aua-0.2.3 lib/aua/operating_systems/android.rb