Class: SlackTrello::WorkCommand
- Inherits:
-
Object
- Object
- SlackTrello::WorkCommand
- Defined in:
- lib/slack_trello/work_command.rb
Instance Attribute Summary collapse
-
#parser ⇒ Object
readonly
Returns the value of attribute parser.
-
#trello_card ⇒ Object
Returns the value of attribute trello_card.
Instance Method Summary collapse
-
#initialize(args) ⇒ WorkCommand
constructor
A new instance of WorkCommand.
- #run ⇒ Object
Constructor Details
#initialize(args) ⇒ WorkCommand
Returns a new instance of WorkCommand.
7 8 9 |
# File 'lib/slack_trello/work_command.rb', line 7 def initialize(args) @parser = ResponseParser.new(args) end |
Instance Attribute Details
#parser ⇒ Object (readonly)
Returns the value of attribute parser.
5 6 7 |
# File 'lib/slack_trello/work_command.rb', line 5 def parser @parser end |
#trello_card ⇒ Object
Returns the value of attribute trello_card.
3 4 5 |
# File 'lib/slack_trello/work_command.rb', line 3 def trello_card @trello_card end |
Instance Method Details
#run ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/slack_trello/work_command.rb', line 11 def run return unless trello_board return unless trello_list create_trello_card #slacky.speak success_message "You should see a notification with a link. If not, the card might not have been created." end |