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

refresh resource is not working #47

Open
guilhermesilveira opened this issue Feb 10, 2011 · 4 comments
Open

refresh resource is not working #47

guilhermesilveira opened this issue Feb 10, 2011 · 4 comments
Labels

Comments

@guilhermesilveira
Copy link
Member

Any Link collection (Links class) should have a method called refresh, which is a shortcut for .self.get.

@abstractj
Copy link
Contributor

Got it :D

@abstractj
Copy link
Contributor

Hi Gui, explain more about to me. You're talking to make this implementation in medie, or Link class that call medie like module?

@guilhermesilveira
Copy link
Member Author

There is a class called Links. If you get a resource such as:

response.resource

You can invoke its links method and receives this object:

links = response.resources.links

So you can follow a link called self:

links.self.get

This issue requests a new method which is the equivalent as the above one (.self.get):

links.refresh

@abstractj
Copy link
Contributor

Perfect, time to write some specs and implement. Thank u

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

No branches or pull requests

2 participants