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 method fetch for Hyperclient::Resource #89

Closed
alabeduarte opened this issue Aug 14, 2015 · 2 comments
Closed

Add method fetch for Hyperclient::Resource #89

alabeduarte opened this issue Aug 14, 2015 · 2 comments

Comments

@alabeduarte
Copy link
Contributor

Hi all,

Sometimes I use the Hyperclient::Resource#[] as a hash, but I would like to avoid if statements when the attribute does not exist for some reason.

Did you consider implement the method fetch with similar behaviour of Hash#fetch in ruby?

Thanks!

@alabeduarte alabeduarte changed the title Implement method fetch to Hyperclient:: Resource Add method fetch for Hyperclient:: Resource Aug 14, 2015
@alabeduarte
Copy link
Contributor Author

Just sent a pull request.

@alabeduarte alabeduarte changed the title Add method fetch for Hyperclient:: Resource Add method fetch for Hyperclient::Resource Aug 15, 2015
@dblock
Copy link
Collaborator

dblock commented Aug 15, 2015

Closed via #90.

@dblock dblock closed this as completed Aug 15, 2015
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

No branches or pull requests

2 participants