Sha256: ee2561747e2122307fc86f696df15bd43c9b08e854cba1878b294d11243f9e21

Contents?: true

Size: 582 Bytes

Versions: 1

Compression:

Stored size: 582 Bytes

Contents

module Aua::Agents::MiteGo

  def self.extend?(agent)
    agent.app == "mite.go" &&
    ((agent.products.index("Darwin") && agent.products[agent.products.index("Darwin")] = "NoDarwin") || true)
  end

  def type
    :ApiClient
  end

  def name
    @name ||= :"mite.go"
  end

  def platform
    @platform ||= begin
      if app_comments.first =~ /^iPod/
        :iPod
      else
        :iPhone
      end
    end
  end

  def os_version
    @os_version ||= begin
      if app_comments[1] =~ /iPhone OS ([\d\.]+)/
        $1
      end
    end
  end

  def os_name
    :iOS
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aua-mite-0.0.6 lib/aua-mite/agents/mite_go.rb