Skip to content

Instantly share code, notes, and snippets.

@rogerleite
Created May 26, 2012 01:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rogerleite/2791620 to your computer and use it in GitHub Desktop.
Save rogerleite/2791620 to your computer and use it in GitHub Desktop.
Restfolia - Adapter para migracao do Restfulie
# Restfolia - Restfulie
- Resource Read Write;
- Resource com interface Hash;
- Links com metodos;
- Alias get -> get!;
- Some Alias
## Resource Read Write
Ex:
content = Restfulie.at("url").get!
content.resultado # => ["xxx", "zzz"]
content.resultado = ["teste"]
## Resource com interface Hash
Ex:
content = Restfulie.at("url").get!
content["resultado"] # => ["xxx", "zzz"]
content["resultado"] = ["teste"]
## Links com metodos
content = Restfulie.at("url").get!
content.links.rel.get! # its the same as content.links("rel").get
## Some Alias
Restfulie.at("url").get! # alias to get
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment