Sha256: d52419043603ba76e32aa5dc3349c661e10b6ee3369e2b4aeb61d1fb5a060321
Contents?: true
Size: 679 Bytes
Versions: 2
Compression:
Stored size: 679 Bytes
Contents
module Aua::Agents::Anytime def self.extend?(agent) agent.app == "Anytime" || agent.app == "anytime" end def type :ApiClient end def name :Anytime end def version products[1] || version_of("anytime") || version_of("Anytime") end def platform @platform ||= begin if app_comments.first =~ /^iPod/ :iPod elsif app_comments.first =~ /^iPad/ :iPad else :iPhone end end end def os_version @os_version ||= if comments[1] && (comments[1][1] || "") =~ /iPhone OS ([\d\.]+)/ $1 elsif app_comments[1] =~ /iOS ([\d\.]+)/ $1 end end def os_name :iOS end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aua-mite-0.0.8 | lib/aua-mite/agents/anytime.rb |
aua-mite-0.0.7 | lib/aua-mite/agents/anytime.rb |