module Aua::Agents::MiteGo

Public Class Methods

extend?(agent) click to toggle source
# File lib/aua-mite/agents/mite_go.rb, line 3
def self.extend?(agent)
  (agent.app == "mite.go" || agent.app == "MiteGo") &&
  ((agent.products.index("Darwin") && agent.products[agent.products.index("Darwin")] = "NoDarwin") || true)
end

Public Instance Methods

name() click to toggle source
# File lib/aua-mite/agents/mite_go.rb, line 12
def name
  @name ||= :MiteGo
end
os_name() click to toggle source
# File lib/aua-mite/agents/mite_go.rb, line 40
def os_name
  :iOS
end
os_version() click to toggle source
# File lib/aua-mite/agents/mite_go.rb, line 32
def os_version
  @os_version ||= begin
    if app_comments[1] =~ /(iPhone OS|iOS) ([\d\.]+)/
      $2
    end
  end
end
platform() click to toggle source
# File lib/aua-mite/agents/mite_go.rb, line 20
def platform
  @platform ||= begin
    if app_comments.first =~ /^iPod/
      :iPod
    elsif app_comments.first =~ /^iPad/
      :iPad
    else
      :iPhone
    end
  end
end
type() click to toggle source
# File lib/aua-mite/agents/mite_go.rb, line 8
def type
  :ApiClient
end
version() click to toggle source
Calls superclass method
# File lib/aua-mite/agents/mite_go.rb, line 16
def version
  super || version_of(app)
end