Sha256: 8c3ce1bc81414509bff2516e0eeead04ef91cfadbc8e44670ff80ecf97847194
Contents?: true
Size: 409 Bytes
Versions: 2
Compression:
Stored size: 409 Bytes
Contents
module Aua::Agents::Fuerst PATTERN = /^(DynaMite|GrandTotal|TimeLog)/ def self.extend?(agent) agent.app =~ PATTERN end def type :ApiClient end def name @name ||= app.match(PATTERN)[1].to_sym end def version @version ||= begin return versions.first if app == "DynaMite" || app == "GrandTotal" || app == "TimeLog" app.sub(PATTERN, "") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aua-mite-0.0.5 | lib/aua-mite/agents/fuerst.rb |
aua-mite-0.0.4 | lib/aua-mite/agents/fuerst.rb |