Class: Agentilda::Unblocker::Target

Inherits:
Data
  • Object
show all
Defined in:
lib/agentilda/unblocker.rb

Overview

One token from the command line, once the tree has had a look at it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#problemSymbol? (readonly)

Returns :missing, :not_blocked, or nil when it is drainable.

Returns:

  • (Symbol, nil)

    :missing, :not_blocked, or nil when it is drainable



41
42
43
44
# File 'lib/agentilda/unblocker.rb', line 41

Target = Data.define(:token, :subject, :problem) do
  # @return [Boolean]
  def drainable? = problem.nil?
end

#subjectAgentilda::Subject? (readonly)

Returns:



41
42
43
44
# File 'lib/agentilda/unblocker.rb', line 41

Target = Data.define(:token, :subject, :problem) do
  # @return [Boolean]
  def drainable? = problem.nil?
end

#tokenString (readonly)

Returns what the user typed.

Returns:

  • (String)

    what the user typed



41
42
43
44
# File 'lib/agentilda/unblocker.rb', line 41

Target = Data.define(:token, :subject, :problem) do
  # @return [Boolean]
  def drainable? = problem.nil?
end

Instance Method Details

#drainable?Boolean

Returns:

  • (Boolean)


43
# File 'lib/agentilda/unblocker.rb', line 43

def drainable? = problem.nil?