Class: TaskwarriorWeb::Command
- Inherits:
-
Object
- Object
- TaskwarriorWeb::Command
- Includes:
- CommandBuilder, Runner
- Defined in:
- lib/taskwarrior-web/model/command.rb
Constant Summary
Constants included from Runner
Instance Attribute Summary collapse
-
#built ⇒ Object
Returns the value of attribute built.
-
#command ⇒ Object
Returns the value of attribute command.
-
#command_string ⇒ Object
Returns the value of attribute command_string.
-
#id ⇒ Object
Returns the value of attribute id.
-
#params ⇒ Object
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(command, id = nil, *args) ⇒ Command
constructor
A new instance of Command.
Methods included from Runner
Methods included from CommandBuilder
Constructor Details
#initialize(command, id = nil, *args) ⇒ Command
Returns a new instance of Command.
7 8 9 10 11 |
# File 'lib/taskwarrior-web/model/command.rb', line 7 def initialize(command, id = nil, *args) @command = command if command @id = id if id @params = args.last.is_a?(::Hash) ? args.pop : {} end |
Instance Attribute Details
#built ⇒ Object
Returns the value of attribute built.
5 6 7 |
# File 'lib/taskwarrior-web/model/command.rb', line 5 def built @built end |
#command ⇒ Object
Returns the value of attribute command.
5 6 7 |
# File 'lib/taskwarrior-web/model/command.rb', line 5 def command @command end |
#command_string ⇒ Object
Returns the value of attribute command_string.
5 6 7 |
# File 'lib/taskwarrior-web/model/command.rb', line 5 def command_string @command_string end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/taskwarrior-web/model/command.rb', line 5 def id @id end |
#params ⇒ Object
Returns the value of attribute params.
5 6 7 |
# File 'lib/taskwarrior-web/model/command.rb', line 5 def params @params end |