-
Notifications
You must be signed in to change notification settings - Fork 26
Leaves - Samantha & Julia #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…ents. Wave 1 complete.
…e to quit and added select user method to CLI.
…il test language for select_user.
… test for Recipient.send_message
… above for user, recipient, channel, and workspace.
slack.rbWhat We're Looking For
|
| puts "\n" | ||
| end | ||
| else | ||
| puts "Sorry, I didn't understand your request. Please try again." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The quit options should probably not print this message!
|
|
||
| user_input = gets.chomp | ||
|
|
||
| until user_input == "quit" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd do this slightly differently.
| until user_input == "quit" | |
| tracking_int = 1 | |
| until tracking_int == 0 | |
| case quit | |
| tracking_int = 0 | |
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd maybe make it a bool, and give it a better name, but this way you address the quit case separately.
| def details | ||
| raise API_Error.new, 'Implement me in a child class!' | ||
| end | ||
|
|
||
| def self.list | ||
| raise API_Error.new, 'Implement me in a child class!' | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah!
| require "httparty" | ||
| require 'pry' | ||
|
|
||
| class API_Error < StandardError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice move implementing this here!
slack.rb
Congratulations! You're submitting your assignment!
You and your partner should collaborate on the answers to these questions.
Comprehension Questions