Class: Agentilda::Linear::Unit

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

Overview

One unit of work inside a plan — the thing that becomes a Linear issue.

Instance Attribute Summary collapse

Instance Attribute Details

#bodyString (readonly)

Returns everything under the heading, as written.

Returns:

  • (String)

    everything under the heading, as written



15
# File 'lib/agentilda/linear/unit.rb', line 15

Unit = Data.define(:key, :title, :body, :pull_requests)

#keyString (readonly)

Returns "PR-1" from a plan.md heading, or "#38" from a pull request.

Returns:

  • (String)

    "PR-1" from a plan.md heading, or "#38" from a pull request



15
# File 'lib/agentilda/linear/unit.rb', line 15

Unit = Data.define(:key, :title, :body, :pull_requests)

#pull_requestsArray<Agentilda::PullRequest> (readonly)

Returns the ones this unit claims.

Returns:



15
# File 'lib/agentilda/linear/unit.rb', line 15

Unit = Data.define(:key, :title, :body, :pull_requests)

#titleString (readonly)

Returns the heading's words, without the "PR-1 —" part.

Returns:

  • (String)

    the heading's words, without the "PR-1 —" part



15
# File 'lib/agentilda/linear/unit.rb', line 15

Unit = Data.define(:key, :title, :body, :pull_requests)