module Aua::Agents::Clockson
Public Class Methods
extend?(agent)
click to toggle source
# File lib/aua-mite/agents/clockson.rb, line 3 def self.extend?(agent) agent.app == "Clockson" || agent.app == "clockson" end
Public Instance Methods
name()
click to toggle source
# File lib/aua-mite/agents/clockson.rb, line 15 def name :Clockson end
os_name()
click to toggle source
# File lib/aua-mite/agents/clockson.rb, line 39 def os_name :iOS end
os_version()
click to toggle source
# File lib/aua-mite/agents/clockson.rb, line 31 def os_version @os_version ||= begin if app_comments[1] =~ /iOS ([\d\.]+)/ $1 end end end
platform()
click to toggle source
# File lib/aua-mite/agents/clockson.rb, line 19 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/clockson.rb, line 7 def type :ApiClient end
version()
click to toggle source
# File lib/aua-mite/agents/clockson.rb, line 11 def version (version_of(name) || version_of("clockson")).sub(/^v/, "") end