module Aua::Agents::Fuerst

Constants

PATTERN

Public Class Methods

extend?(agent) click to toggle source
# File lib/aua-mite/agents/fuerst.rb, line 5
def self.extend?(agent)
  agent.app =~ PATTERN
end

Public Instance Methods

name() click to toggle source
# File lib/aua-mite/agents/fuerst.rb, line 13
def name
  @name ||= app.match(PATTERN)[1].to_sym
end
type() click to toggle source
# File lib/aua-mite/agents/fuerst.rb, line 9
def type
  :ApiClient
end
version() click to toggle source
# File lib/aua-mite/agents/fuerst.rb, line 17
def version
  @version ||= begin
    return versions.first if app == "DynaMite" || app == "GrandTotal" || app == "TimeLog"
    app.sub(PATTERN, "")
  end
end