Skip to content
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

Add success? method to A3rt::Talk::Response #1

Merged
merged 2 commits into from
Jul 3, 2018

Conversation

tomoasleep
Copy link
Contributor

@tomoasleep tomoasleep commented Jul 2, 2018

Add A3rt::Talk::Response#success? method to judge if a request is succeeded.
This method returns true only when the status field equals 0 (The list of status codes can be seen here: https://a3rt.recruit-tech.co.jp/product/talkAPI/).

This method is useful to implement error handling for wrapper libraries (such as ruboty-a3rt-talk).

Copy link
Owner

@hkdnet hkdnet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍
Thank you for your contribution 😄

@hkdnet hkdnet merged commit 4eec048 into hkdnet:master Jul 3, 2018
@hkdnet
Copy link
Owner

hkdnet commented Jul 3, 2018

@tomoasleep
I just published v0.1.2 including this change.
https://rubygems.org/gems/a3rt-talk/versions/0.1.2

@tomoasleep tomoasleep deleted the add-success-method branch July 3, 2018 08:38
@tomoasleep
Copy link
Contributor Author

Thanks! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants