Sha256: 263935989aa7602f59eae97893e6e4501e83fe0cdd59f9946641b711e5e949c2
Contents?: true
Size: 622 Bytes
Versions: 2
Compression:
Stored size: 622 Bytes
Contents
module Aua::Agents::Clockson def self.extend?(agent) agent.app == "Clockson" || agent.app == "clockson" end def type :ApiClient end def version (version_of(name) || version_of("clockson")).sub(/^v/, "") end def name :Clockson 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 ||= begin if app_comments[1] =~ /iOS ([\d\.]+)/ $1 end 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/clockson.rb |
aua-mite-0.0.7 | lib/aua-mite/agents/clockson.rb |