Class: Abt::Providers::Asana::BaseCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Abt::Providers::Asana::BaseCommand
- Extended by:
- Forwardable
- Defined in:
- lib/abt/providers/asana/base_command.rb
Direct Known Subclasses
Commands::Add, Commands::BranchName, Commands::Clear, Commands::Current, Commands::Finalize, Commands::HarvestTimeEntryData, Commands::Pick, Commands::Projects, Commands::Share, Commands::Start, Commands::Tasks, Commands::WriteConfig
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Attributes inherited from BaseCommand
Instance Method Summary collapse
-
#initialize(ari:, cli:) ⇒ BaseCommand
constructor
A new instance of BaseCommand.
Methods inherited from BaseCommand
description, flags, #perform, usage
Constructor Details
#initialize(ari:, cli:) ⇒ BaseCommand
Returns a new instance of BaseCommand.
13 14 15 16 17 18 19 |
# File 'lib/abt/providers/asana/base_command.rb', line 13 def initialize(ari:, cli:) super @config = Configuration.new(cli: cli) @path = ari.path ? Path.new(ari.path) : config.path end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
9 10 11 |
# File 'lib/abt/providers/asana/base_command.rb', line 9 def config @config end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
9 10 11 |
# File 'lib/abt/providers/asana/base_command.rb', line 9 def path @path end |