Class: Agentilda::Linear::Survey::Match

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

Overview

How a project and a plan were found to be the same thing.

Both rules are exact after normalising; neither is fuzzy. A near-match is reported as a near-match, because a project silently adopted by the wrong plan is worse than one nobody adopted at all.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#projectObject (readonly)

Returns the value of attribute project

Returns:

  • (Object)

    the current value of project



23
24
25
# File 'lib/agentilda/linear/survey.rb', line 23

def project
  @project
end

#ruleObject (readonly)

Returns the value of attribute rule

Returns:

  • (Object)

    the current value of rule



23
24
25
# File 'lib/agentilda/linear/survey.rb', line 23

def rule
  @rule
end

#subjectObject (readonly)

Returns the value of attribute subject

Returns:

  • (Object)

    the current value of subject



23
24
25
# File 'lib/agentilda/linear/survey.rb', line 23

def subject
  @subject
end

Instance Method Details

#whyString

Returns:

  • (String)


25
# File 'lib/agentilda/linear/survey.rb', line 25

def why = {ordinal: "its name carries the plan number", slug: "its name is the plan's slug"}.fetch(rule)