Class: Expedite::Agents::Registration

Inherits:
Struct
  • Object
show all
Defined in:
lib/expedite/agents.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#agentObject

Returns the value of attribute agent

Returns:

  • (Object)

    the current value of agent



40
41
42
# File 'lib/expedite/agents.rb', line 40

def agent
  @agent
end

#matcherObject

Returns the value of attribute matcher

Returns:

  • (Object)

    the current value of matcher



40
41
42
# File 'lib/expedite/agents.rb', line 40

def matcher
  @matcher
end

Instance Method Details

#match?(name) ⇒ Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/expedite/agents.rb', line 41

def match?(name)
  File.fnmatch?(matcher, name.to_s)
end